mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 22:59:08 +02:00
gtk: fill the interior one pixel smaller to avoid overllaping with the border in DrawEdge
git-svn-id: trunk@23270 -
This commit is contained in:
parent
6b7d886771
commit
eda58ffd42
@ -2845,7 +2845,6 @@ var
|
||||
InnerTL, OuterTL,
|
||||
InnerBR, OuterBR, MiddleColor: TGDKColor;
|
||||
BInner, BOuter: Boolean;
|
||||
Width, Height: Integer;
|
||||
R: TRect;
|
||||
DCOrigin: TPoint;
|
||||
begin
|
||||
@ -2916,11 +2915,10 @@ begin
|
||||
//Draw interiour
|
||||
if ((grfFlags and BF_MIDDLE) = BF_MIDDLE) then
|
||||
begin
|
||||
Width := R.Right - R.Left + 1;
|
||||
Height := R.Bottom - R.Top + 1;
|
||||
MiddleColor := AllocGDKColor(GetSysColor(COLOR_BTNFACE));
|
||||
gdk_gc_set_foreground(GC, @MiddleColor);
|
||||
gdk_draw_rectangle(Drawable, GC, 1, R.Left, R.Top, Width, Height);
|
||||
gdk_draw_rectangle(Drawable, GC, 1, R.Left, R.Top,
|
||||
R.Right - R.Left, R.Bottom - R.Top);
|
||||
end;
|
||||
|
||||
// adjust rect if needed
|
||||
|
Loading…
Reference in New Issue
Block a user