mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Fix logic in win32_get_video_output_next
This commit is contained in:
parent
1ecdbf4050
commit
97de6deb56
@ -1059,6 +1059,7 @@ void win32_get_video_output_prev(
|
|||||||
{
|
{
|
||||||
DEVMODE dm;
|
DEVMODE dm;
|
||||||
int iModeNum;
|
int iModeNum;
|
||||||
|
bool found = false;
|
||||||
unsigned prev_width = 0;
|
unsigned prev_width = 0;
|
||||||
unsigned prev_height = 0;
|
unsigned prev_height = 0;
|
||||||
unsigned curr_width = 0;
|
unsigned curr_width = 0;
|
||||||
@ -1075,8 +1076,7 @@ void win32_get_video_output_prev(
|
|||||||
{
|
{
|
||||||
if (prev_width != curr_width && prev_height != curr_height)
|
if (prev_width != curr_width && prev_height != curr_height)
|
||||||
{
|
{
|
||||||
*width = dm.dmPelsWidth;
|
found = true;
|
||||||
*height = dm.dmPelsHeight;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1084,6 +1084,12 @@ void win32_get_video_output_prev(
|
|||||||
prev_width = dm.dmPelsWidth;
|
prev_width = dm.dmPelsWidth;
|
||||||
prev_height = dm.dmPelsHeight;
|
prev_height = dm.dmPelsHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (found)
|
||||||
|
{
|
||||||
|
*width = prev_width;
|
||||||
|
*height = prev_height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void win32_get_video_output_size(unsigned *width, unsigned *height)
|
void win32_get_video_output_size(unsigned *width, unsigned *height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user