Skip to content
Snippets Groups Projects
Commit 6abafd00 authored by deuce's avatar deuce
Browse files

The update rectangle applies to both the texture and the renderer, not just

the renderer.  Fixes crash when there's fewer screen pixels than in the
window.
parent d50eaaeb
Branches
Tags
No related merge requests found
......@@ -1402,11 +1402,11 @@ static void sdl_video_event_thread(void *data)
old_next = list->next;
if (list->next == NULL) {
sdl.UpdateTexture(texture, NULL, list->data, list->rect.width * sizeof(uint32_t));
src.x = 0;
src.y = 0;
src.w = list->rect.width;
src.h = list->rect.height;
sdl.UpdateTexture(texture, &src, list->data, list->rect.width * sizeof(uint32_t));
sdl.RenderCopy(renderer, texture, &src, NULL);
}
bitmap_drv_free_rect(list);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment