mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:39:30 +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;
|
function TGtk3WidgetSet.IsValidDC(const DC: HDC): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := DC <> 0;
|
Result := DC <> 0;
|
||||||
|
if Result then
|
||||||
|
Result := TGtk3DeviceContext(DC).pcr <> nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TGtk3WidgetSet.IsValidGDIObject(const AGdiObject: HGDIOBJ): Boolean;
|
function TGtk3WidgetSet.IsValidGDIObject(const AGdiObject: HGDIOBJ): Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user