Explicitly cast screen coordinates in set_pixel

This commit is contained in:
Abdelrahman Said 2023-12-18 14:21:20 +00:00
parent 4a0ec9e5e7
commit c5cc8643e1

View File

@ -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);
}