mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 12:59:19 +02:00
Gtk3: fixed TGtk3WidgetSet.GetRgnBox().
This commit is contained in:
parent
560a692e29
commit
b329b331ff
@ -2425,10 +2425,17 @@ end;
|
||||
|
||||
function TGtk3WidgetSet.GetRgnBox(RGN: HRGN; lpRect: PRect): Longint;
|
||||
begin
|
||||
Result := SIMPLEREGION;
|
||||
Result := ERROR;
|
||||
if IsValidGDIObject(RGN) then
|
||||
begin
|
||||
lpRect^ := TGtk3Region(RGN).GetExtents;
|
||||
if IsRectEmpty(lpRect^) then
|
||||
Result := NullRegion
|
||||
else
|
||||
if cairo_region_num_rectangles(TGtk3Region(RGN).Handle) > 1 then
|
||||
Result := ComplexRegion
|
||||
else
|
||||
Result := SimpleRegion;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user