aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2017-01-28 23:25:55 +0000
committerGitHub <noreply@github.com>2017-01-28 23:25:55 +0000
commit3e257ef8d0541c58445b77787cec0b35fd42ec05 (patch)
tree138cfa6e3cd19a78f7690151494853b95d0550f9
parente86c990b75bb30f0116430453b42a59317e3fead (diff)
parent626f91f3078f3831471277b4da850394c3d3037b (diff)
Merge pull request #12 from thebirk/windows-odin-correction
Changed #foreign user32 to gdi32 where this was wrong.
-rw-r--r--core/sys/windows.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/sys/windows.odin b/core/sys/windows.odin
index 45114d246..01bad758c 100644
--- a/core/sys/windows.odin
+++ b/core/sys/windows.odin
@@ -394,9 +394,9 @@ PIXELFORMATDESCRIPTOR :: struct #ordered {
}
GetDC :: proc(h: HANDLE) -> HDC #foreign user32;
-SetPixelFormat :: proc(hdc: HDC, pixel_format: i32, pfd: ^PIXELFORMATDESCRIPTOR ) -> BOOL #foreign user32;
-ChoosePixelFormat :: proc(hdc: HDC, pfd: ^PIXELFORMATDESCRIPTOR) -> i32 #foreign user32;
-SwapBuffers :: proc(hdc: HDC) -> BOOL #foreign user32;
+SetPixelFormat :: proc(hdc: HDC, pixel_format: i32, pfd: ^PIXELFORMATDESCRIPTOR ) -> BOOL #foreign gdi32;
+ChoosePixelFormat :: proc(hdc: HDC, pfd: ^PIXELFORMATDESCRIPTOR) -> i32 #foreign gdi32;
+SwapBuffers :: proc(hdc: HDC) -> BOOL #foreign gdi32;
ReleaseDC :: proc(wnd: HWND, hdc: HDC) -> i32 #foreign user32;
WGL_CONTEXT_MAJOR_VERSION_ARB :: 0x2091;