From 0ebe81fce27bd8f3bd63415784bca4f7a6545365 Mon Sep 17 00:00:00 2001 From: hikari Date: Sat, 11 Jun 2022 12:27:18 +0300 Subject: [PATCH] sys/windows: add GetTextExtentPoint32W --- core/sys/windows/gdi32.odin | 1 + 1 file changed, 1 insertion(+) 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 {