aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooperGH <alexandredmfs@gmail.com>2022-12-19 13:21:16 +0000
committerJooperGH <alexandredmfs@gmail.com>2022-12-19 13:21:16 +0000
commit5464a605b19068633c0ffca5e95ebb16115809e9 (patch)
tree025c8a3af9795ad59a36405e983d7f274d24fd71
parent5519749aa4f2552b5e2f9b4b4ab05c284c8d4606 (diff)
CreateSolidBrush and FillRect
-rw-r--r--core/sys/windows/gdi32.odin2
-rw-r--r--core/sys/windows/user32.odin2
2 files changed, 4 insertions, 0 deletions
diff --git a/core/sys/windows/gdi32.odin b/core/sys/windows/gdi32.odin
index d83d2aa6c..9e2294c71 100644
--- a/core/sys/windows/gdi32.odin
+++ b/core/sys/windows/gdi32.odin
@@ -79,6 +79,8 @@ foreign gdi32 {
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 ---
GetTextMetricsW :: proc(hdc: HDC, lptm: LPTEXTMETRICW) -> BOOL ---
+
+ CreateSolidBrush :: proc(color: COLORREF) -> HBRUSH ---
}
RGB :: #force_inline proc "contextless" (r, g, b: u8) -> COLORREF {
diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin
index d8dbabd66..77b8ac3af 100644
--- a/core/sys/windows/user32.odin
+++ b/core/sys/windows/user32.odin
@@ -205,6 +205,8 @@ foreign user32 {
RegisterRawInputDevices :: proc(pRawInputDevices: PCRAWINPUTDEVICE, uiNumDevices: UINT, cbSize: UINT) -> BOOL ---
SetLayeredWindowAttributes :: proc(hWnd: HWND, crKey: COLORREF, bAlpha: BYTE, dwFlags: DWORD) -> BOOL ---
+
+ FillRect :: proc(hDC: HDC, lprc: ^RECT, hbr: HBRUSH) -> int ---
}
CreateWindowW :: #force_inline proc "stdcall" (