mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 00:03:48 +02:00
Gtk3: fixed loop with paint, stalled code.
This commit is contained in:
parent
16be2ec0a6
commit
5eded0d07e
@ -1362,12 +1362,7 @@ begin
|
||||
if Data <> nil then
|
||||
begin
|
||||
gdk_cairo_get_clip_rectangle(AContext, @ARect);
|
||||
// DebugLn('**** Sending paint event to ',dbgsName(TGtk3Widget(Data).LCLObject),' clip ',dbgs(RectFromGdkRect(ARect)),' w=',dbgs(ARect.Width),' h=',dbgs(ARect.height));
|
||||
Result := TGtk3Widget(Data).GtkEventPaint(AWidget, AContext);
|
||||
// workaround for lcl painted widgets until we found why gtk3 sends wrong rect
|
||||
if (TGtk3Widget(Data).FHasPaint) and
|
||||
(ARect.height < (TGtk3Widget(Data).GetContainerWidget^.get_allocated_height div 4) ) then
|
||||
AWidget^.queue_draw;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user