diff --git a/core/sys/windows/gdi32.odin b/core/sys/windows/gdi32.odin index d5b32e2a8..4403a5dc3 100644 --- a/core/sys/windows/gdi32.odin +++ b/core/sys/windows/gdi32.odin @@ -76,6 +76,7 @@ foreign gdi32 { pszFaceName: LPCWSTR, ) -> HFONT --- TextOutW :: proc(hdc: HDC, x, y: c_int, lpString: LPCWSTR, c: c_int) -> BOOL --- + GetTextExtentPoint32W :: proc(hdc: HDC, lpString: LPCWSTR, c: c_int, psizl: LPSIZE) -> BOOL --- } RGB :: #force_inline proc "contextless" (r, g, b: u8) -> COLORREF { diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index b84af7a64..d79197532 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -901,6 +901,9 @@ WS_TILEDWINDOW : UINT : WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKF WS_VISIBLE : UINT : 0x1000_0000 WS_VSCROLL : UINT : 0x0020_0000 +PBS_SMOOTH :: 0x01 +PBS_VERTICAL :: 0x04 + QS_ALLEVENTS : UINT : QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY QS_ALLINPUT : UINT : QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE QS_ALLPOSTMESSAGE : UINT : 0x0100