From d49777ea0ba70640d6ca0b9aeb8fa461c51a0cc0 Mon Sep 17 00:00:00 2001 From: graemeg Date: Mon, 9 Jul 2007 10:17:25 +0000 Subject: GFX: minor changes to the Paint event. --- gfx/x11/gfx_x11.pas | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gfx/x11/gfx_x11.pas') 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 -- cgit v1.2.3-70-g09d2