Factor
This commit is contained in:
@@ -77,11 +77,11 @@ GetWindowPos :: (window: HWND): Vec2I
|
||||
|
||||
AdjustWindowRect :: (window: HWND, style: DWORD, rect: *RECT): void
|
||||
FALSE :: 0
|
||||
if window == 0
|
||||
dpi := GetDpiForWindow(window)
|
||||
AdjustWindowRectExForDpi(rect, style, FALSE, 0, dpi)
|
||||
else
|
||||
AdjustWindowRectEx(rect, style, FALSE, 0)
|
||||
// if window == 0
|
||||
// dpi := GetDpiForWindow(window)
|
||||
// AdjustWindowRectExForDpi(rect, style, FALSE, 0, dpi)
|
||||
// else
|
||||
AdjustWindowRectEx(rect, style, FALSE, 0)
|
||||
|
||||
SetWindowSize :: (window: HWND, style: DWORD, size: Vec2I): void
|
||||
rect := RECT{ 0, 0, size.x->LONG, size.y->LONG }
|
||||
|
||||
Reference in New Issue
Block a user