gtk interface: made Rectangle winapi compatible (bug #8342)

git-svn-id: trunk@10782 -
This commit is contained in:
vincents 2007-03-22 19:10:10 +00:00
parent 14b348460c
commit 27409f3080

View File

@ -7416,6 +7416,9 @@ begin
end
else begin
CalculateLeftTopWidthHeight(X1,Y1,X2,Y2,Left,Top,Width,Height);
// X2, Y2 is not part of the rectangle
dec(Width);
dec(Height);
// first draw interior in brush color
SelectGDKBrushProps(DC);
DCOrigin:=GetDCOffset(TDeviceContext(DC));