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:
zeljko 2015-03-14 11:42:26 +00:00
parent 4a95b24ae8
commit b981df5ee5

View File

@ -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;
{------------------------------------------------------------------------------