From 8012e6fa43b280a62fbe503f938e66865046a564 Mon Sep 17 00:00:00 2001 From: Ryhor Spivak Date: Wed, 24 May 2023 15:14:30 +0300 Subject: [PATCH] Remove rcDevice field from WINDOWPLACEMENT. Add WaitMessage and SetWindowPlacement. rcDevice is under #ifdef _MAC in WinUser.h and _MAC is defined only for PowerPC Mac builds. --- core/sys/windows/user32.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index e8499a67b..29fa4da17 100644 --- a/core/sys/windows/user32.odin +++ b/core/sys/windows/user32.odin @@ -52,6 +52,8 @@ foreign user32 { TranslateMessage :: proc(lpMsg: ^MSG) -> BOOL --- DispatchMessageW :: proc(lpMsg: ^MSG) -> LRESULT --- + WaitMessage :: proc() -> BOOL --- + PeekMessageA :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT, wRemoveMsg: UINT) -> BOOL --- PeekMessageW :: proc(lpMsg: ^MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT, wRemoveMsg: UINT) -> BOOL --- @@ -222,6 +224,7 @@ foreign user32 { GetWindowInfo :: proc(hwnd: HWND, pwi: PWINDOWINFO) -> BOOL --- GetWindowPlacement :: proc(hWnd: HWND, lpwndpl: ^WINDOWPLACEMENT) -> BOOL --- + SetWindowPlacement :: proc(hwnd: HWND, lpwndpl: ^WINDOWPLACEMENT) -> BOOL --- SetWindowRgn :: proc(hWnd: HWND, hRgn: HRGN, bRedraw: BOOL) -> int --- CreateRectRgnIndirect :: proc(lprect: ^RECT) -> HRGN --- GetSystemMetricsForDpi :: proc(nIndex: int, dpi: UINT) -> int --- @@ -463,7 +466,6 @@ WINDOWPLACEMENT :: struct { ptMinPosition: POINT, ptMaxPosition: POINT, rcNormalPosition: RECT, - rcDevice: RECT, } WINDOWINFO :: struct {