mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-08 20:03:04 +08:00
CalcLayoutBoundingRect
This commit is contained in:
@@ -2312,7 +2312,12 @@ int GUIAPI CalcLayoutBoundingRect(LAYOUTINFO* layout,
|
||||
}
|
||||
|
||||
GetLayoutLineRect(line, &x, &y, line_height, &line_rc);
|
||||
GetBoundRect(bounding, bounding, &line_rc);
|
||||
if (IsRectEmpty(bounding)) {
|
||||
CopyRect(bounding, &line_rc);
|
||||
}
|
||||
else {
|
||||
GetBoundRect(bounding, bounding, &line_rc);
|
||||
}
|
||||
|
||||
nr_lines++;
|
||||
} while (1);
|
||||
|
||||
Reference in New Issue
Block a user