mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 03:21:24 +02:00
Gtk3: do not invalidate whole area if rect is empty.
This commit is contained in:
parent
1024bbc9e4
commit
790e387825
@ -3455,13 +3455,16 @@ procedure TGtk3Widget.Update(ARect: PRect);
|
|||||||
begin
|
begin
|
||||||
if IsWidgetOK then
|
if IsWidgetOK then
|
||||||
begin
|
begin
|
||||||
if (ARect <> nil) and (aRect^.Width > 0) and (ARect^.Height > 0) then
|
if (ARect <> nil) then
|
||||||
|
begin
|
||||||
|
if (aRect^.Width > 0) and (ARect^.Height > 0) then
|
||||||
begin
|
begin
|
||||||
with ARect^ do
|
with ARect^ do
|
||||||
FWidget^.queue_draw_area(Left, Top, Right - Left, Bottom - Top);
|
FWidget^.queue_draw_area(Left, Top, Right - Left, Bottom - Top);
|
||||||
if FWidget <> GetContainerWidget then
|
if FWidget <> GetContainerWidget then
|
||||||
with ARect^ do
|
with ARect^ do
|
||||||
GetContainerWidget^.queue_draw_area(Left, Top, Right - Left, Bottom - Top);
|
GetContainerWidget^.queue_draw_area(Left, Top, Right - Left, Bottom - Top);
|
||||||
|
end;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
//FWidget^.queue_draw;
|
//FWidget^.queue_draw;
|
||||||
|
Loading…
Reference in New Issue
Block a user