mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-22 23:23:49 +02:00
Window widths/heights named correctly
This commit is contained in:
@@ -4,16 +4,16 @@ uses
|
||||
KolibriOS;
|
||||
|
||||
var
|
||||
Left, Right, Top, Bottom: Integer;
|
||||
WndLeft, WndTop, WndWidth, WndHeight: Integer;
|
||||
X, Y: Integer;
|
||||
|
||||
begin
|
||||
with GetScreenSize do
|
||||
begin
|
||||
Right := 180;
|
||||
Bottom := 180;
|
||||
Left := (Width - Right) div 2;
|
||||
Top := (Height - Bottom) div 2;
|
||||
WndWidth := 180;
|
||||
WndHeight := 180;
|
||||
WndLeft := (Width - WndWidth) div 2;
|
||||
WndTop := (Height - WndHeight) div 2;
|
||||
end;
|
||||
|
||||
while True do
|
||||
@@ -22,7 +22,7 @@ begin
|
||||
begin
|
||||
BeginDraw;
|
||||
|
||||
DrawWindow(Left, Top, Right, Bottom, 'Set Pixel', $00FFFFFF,
|
||||
DrawWindow(WndLeft, WndTop, WndWidth, WndHeight, 'Set Pixel', $00FFFFFF,
|
||||
WS_SKINNED_FIXED + WS_CLIENT_COORDS + WS_CAPTION, CAPTION_MOVABLE);
|
||||
|
||||
for Y := 0 to 50 do
|
||||
|
Reference in New Issue
Block a user