summaryrefslogtreecommitdiff
path: root/gfx/x11/gfx_x11.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-09 10:17:25 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-09 10:17:25 +0000
commitd49777ea0ba70640d6ca0b9aeb8fa461c51a0cc0 (patch)
tree0fb25d283da8c823c2bcf05c4980c7a353d6285d /gfx/x11/gfx_x11.pas
parent507c84feef852c0b9763a1b1ca11232fb6c4b1a6 (diff)
downloadfpGUI-d49777ea0ba70640d6ca0b9aeb8fa461c51a0cc0.tar.xz
GFX: minor changes to the Paint event.
Diffstat (limited to 'gfx/x11/gfx_x11.pas')
-rw-r--r--gfx/x11/gfx_x11.pas8
1 files changed, 6 insertions, 2 deletions
diff --git a/gfx/x11/gfx_x11.pas b/gfx/x11/gfx_x11.pas
index d825c78f..f49228cb 100644
--- a/gfx/x11/gfx_x11.pas
+++ b/gfx/x11/gfx_x11.pas
@@ -1663,11 +1663,15 @@ begin
end;
etMouseWheel:
begin
-
+ // it's handled in etMousePressed
end;
etPaint:
begin
- if Assigned(OnPaint) then OnPaint(Self, Rect(AEvent.X, AEvent.Y, AEvent.Width, AEvent.Height));
+// if Assigned(OnPaint) then OnPaint(Self, Rect(AEvent.X, AEvent.Y, AEvent.Width, AEvent.Height));
+ // We are ignoring the rectangle from the XEvent and rather use the
+ // full window rectangle.
+ if Assigned(OnPaint) then
+ OnPaint(Self, Rect(0, 0, Width, Height));
end;
etMove:
begin