From d066b571450ff7502d08c9edce9122a156cf123f Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 21 May 2009 12:42:07 +0000 Subject: [PATCH] gtk: fix Frame3D painting git-svn-id: trunk@20105 - --- lcl/interfaces/gtk/gtkwinapi.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lcl/interfaces/gtk/gtkwinapi.inc b/lcl/interfaces/gtk/gtkwinapi.inc index c4dfc5073f..a03e11ff58 100644 --- a/lcl/interfaces/gtk/gtkwinapi.inc +++ b/lcl/interfaces/gtk/gtkwinapi.inc @@ -4361,10 +4361,6 @@ begin {DebugLn(['Frame3D: Drawable = ', dbgs(Drawable), ' StyleWidget = ', dbgs(StyleWidget), ' Style = ', dbgs(TheStyle), ' Offset = ', dbgs(Offset), ' ARect = ', dbgs(ARect)]);} - Area.X := ARect.Left + Offset.X; - Area.Y := ARect.Top + Offset.Y; - Area.Width := ARect.Right - ARect.Left; - Area.Height := ARect.Bottom - ARect.Top; if FrameWidth = 1 then ShadowType := GTKThinShadowType[Style] else @@ -4372,6 +4368,10 @@ begin for i := 1 to FrameWidth do begin + Area.X := ARect.Left + Offset.X; + Area.Y := ARect.Top + Offset.Y; + Area.Width := ARect.Right - ARect.Left; + Area.Height := ARect.Bottom - ARect.Top; gtk_paint_shadow(TheStyle, Drawable, GTK_STATE_NORMAL, ShadowType,