Skip to content
Snippets Groups Projects
Commit 7c441878 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

For SDL mode, ensure rect matches vstat as well.

parent 9d06d169
No related branches found
No related tags found
No related merge requests found
Pipeline #5836 passed
...@@ -1050,6 +1050,8 @@ void sdl_video_event_thread(void *data) ...@@ -1050,6 +1050,8 @@ void sdl_video_event_thread(void *data)
update_cvstat(&cvstat); update_cvstat(&cvstat);
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
// Get correct aspect ratio for dst... // Get correct aspect ratio for dst...
int sw = cvstat.scrnwidth;
int sh = cvstat.scrnheight;
bitmap_get_scaled_win_size(cvstat.scaling, &dst.w, &dst.h, cvstat.winwidth, cvstat.winheight); bitmap_get_scaled_win_size(cvstat.scaling, &dst.w, &dst.h, cvstat.winwidth, cvstat.winheight);
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
pthread_mutex_lock(&win_mutex); pthread_mutex_lock(&win_mutex);
...@@ -1066,7 +1068,7 @@ void sdl_video_event_thread(void *data) ...@@ -1066,7 +1068,7 @@ void sdl_video_event_thread(void *data)
SDL_Rect src; SDL_Rect src;
old_next = list->next; old_next = list->next;
if (list->next == NULL && !skipit) { if (list->next == NULL && !skipit && sw == list->rect.width && sh == list->rect.height) {
void *pixels; void *pixels;
int pitch; int pitch;
int row; int row;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment