mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
sys/windows: add a couple of procedures and types
This commit is contained in:
@@ -62,5 +62,10 @@ foreign gdi32 {
|
||||
ChoosePixelFormat :: proc(hdc: HDC, ppfd: ^PIXELFORMATDESCRIPTOR) -> c_int ---
|
||||
SwapBuffers :: proc(HDC) -> BOOL ---
|
||||
|
||||
SetDCBrushColor :: proc(hdc: HDC, color: COLORREF) -> COLORREF ---
|
||||
PatBlt :: proc(hdc: HDC, x, y, w, h: c_int, rop: DWORD) -> BOOL ---
|
||||
}
|
||||
|
||||
RGB :: proc(r, g, b: u8) -> COLORREF {
|
||||
return COLORREF(COLORREF(r) | COLORREF(g) << 8 | COLORREF(b) << 16)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user