mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +02:00
Gtk2: reverted previous commit. it's not good since without drawable we can use context for text measuring etc etc
git-svn-id: trunk@48342 -
This commit is contained in:
parent
4a95b24ae8
commit
b981df5ee5
@ -5426,8 +5426,6 @@ end;
|
||||
function TGtk2WidgetSet.IsValidDC(const DC: HDC): Boolean;
|
||||
begin
|
||||
Result := FDeviceContexts.Contains({%H-}Pointer(DC));
|
||||
if Result and (TGtkDeviceContext(DC).Widget <> nil) then
|
||||
Result := (TGtkDeviceContext(DC).Drawable <> nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user