diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
| commit | 50301557b2425fc0b4dd213ad03fb635cbd6e454 (patch) | |
| tree | bcb09c25f839099ac172529283bc7e4a147614d8 /code/game.odin | |
| parent | fee504636f9cd7633217e1877ee1b99e555bba63 (diff) | |
Untyped `nil`
Diffstat (limited to 'code/game.odin')
| -rw-r--r-- | code/game.odin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/code/game.odin b/code/game.odin index 46940fe4f..aebf4a931 100644 --- a/code/game.odin +++ b/code/game.odin @@ -50,7 +50,7 @@ make_window :: proc(title: string, msg, height: int, window_proc: win32.WNDPROC) c_class_name := class_name.data w.c_title = to_c_string(title) - instance := GetModuleHandleA(null) + instance := GetModuleHandleA(nil) w.wc = WNDCLASSEXA{ size = size_of(WNDCLASSEXA) as u32, @@ -70,9 +70,9 @@ make_window :: proc(title: string, msg, height: int, window_proc: win32.WNDPROC) WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, w.width as i32, w.height as i32, - null, null, instance, null) + nil, nil, instance, nil) - if w.hwnd == null { + if w.hwnd == nil { win32_print_last_error() return w, false } @@ -92,7 +92,7 @@ make_window :: proc(title: string, msg, height: int, window_proc: win32.WNDPROC) layer_type = PFD_MAIN_PLANE, } - SetPixelFormat(w.dc, ChoosePixelFormat(w.dc, ^pfd), null) + SetPixelFormat(w.dc, ChoosePixelFormat(w.dc, ^pfd), nil) w.opengl_context = wglCreateContext(w.dc) wglMakeCurrent(w.dc, w.opengl_context) @@ -154,7 +154,7 @@ run :: proc() { prev_time = curr_time msg: MSG - for PeekMessageA(^msg, null, 0, 0, PM_REMOVE) > 0 { + for PeekMessageA(^msg, nil, 0, 0, PM_REMOVE) > 0 { if msg.message == WM_QUIT { running = false } |