mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 09:09:32 +02:00
Gtk3: better check if cairo is valid.
This commit is contained in:
parent
2a59941a59
commit
8a8026c0c8
@ -763,6 +763,8 @@ end;
|
||||
function TGtk3WidgetSet.IsValidDC(const DC: HDC): Boolean;
|
||||
begin
|
||||
Result := DC <> 0;
|
||||
if Result then
|
||||
Result := TGtk3DeviceContext(DC).pcr <> nil;
|
||||
end;
|
||||
|
||||
function TGtk3WidgetSet.IsValidGDIObject(const AGdiObject: HGDIOBJ): Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user