Explicitly cast screen coordinates in set_pixel
This commit is contained in:
1 parent
4a0ec9e5e7
commit
c5cc8643e1
1 file changed
+1
-1
+1
-1
@@ -112,7 +112,7 @@ void set_pixel(window_t *wnd, i32 x, i32 y, colour_t colour) {
|
||||
|
||||
SDL_LockSurface(wnd->back_buffer);
|
||||
|
||||
set_screen_pixel(wnd, screen_x, screen_y, colour);
|
||||
set_screen_pixel(wnd, (u32)screen_x, (u32)screen_y, colour);
|
||||
|
||||
SDL_UnlockSurface(wnd->back_buffer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user