mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-21 22:53:51 +02:00
KolibriOS window styles sorted by value, WS_NO_DRAW and WINDOW_BORDER_SIZE added
This commit is contained in:
@@ -3,9 +3,6 @@ program Screenshot;
|
||||
uses
|
||||
KolibriOS;
|
||||
|
||||
const
|
||||
BORDER_SIZE = 5;
|
||||
|
||||
type
|
||||
TRGBTriple = packed record
|
||||
Blue: Byte;
|
||||
@@ -63,8 +60,8 @@ begin
|
||||
|
||||
with ScreenSize do
|
||||
begin
|
||||
WndWidth := BORDER_SIZE * 2 + Width div 2 - 1;
|
||||
WndHeight := BORDER_SIZE + GetSkinHeight + Height div 2 - 1;
|
||||
WndWidth := WINDOW_BORDER_SIZE * 2 + Width div 2 - 1;
|
||||
WndHeight := WINDOW_BORDER_SIZE + GetSkinHeight + Height div 2 - 1;
|
||||
WndLeft := (Width - WndWidth) div 2;
|
||||
WndTop := (Height - WndHeight) div 2;
|
||||
|
||||
|
Reference in New Issue
Block a user