Explicitly cast screen coordinates in set_pixel
This commit is contained in:
parent
4a0ec9e5e7
commit
c5cc8643e1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user