mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 01:02:17 -05:00
Fixed bug in getclientdimensions:
In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words, the pixel at (right, bottom) lies immediately outside the rectangle. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@23 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
58995711ad
commit
71c7f9bf3d
@ -349,8 +349,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
GetWindowRect(Self.TargetHandle, Rect);
|
GetWindowRect(Self.TargetHandle, Rect);
|
||||||
w:= Rect.Right - Rect.left + 1;
|
w:= Rect.Right - Rect.left;
|
||||||
h:= Rect.Bottom - Rect.Top + 1;
|
h:= Rect.Bottom - Rect.Top;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
w_XWindow:
|
w_XWindow:
|
||||||
|
Loading…
Reference in New Issue
Block a user