mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
Merge pull request #3993 from dankcushions/aspectratio
Do not allow custom resolutions to be below the game resolution when …
This commit is contained in:
commit
ed77f98f5e
@ -190,7 +190,10 @@ static int setting_uint_action_left_custom_viewport_width(void *data, bool wrapa
|
||||
if (custom->width <= 1)
|
||||
custom->width = 1;
|
||||
else if (settings->video.scale_integer)
|
||||
custom->width -= geom->base_width;
|
||||
{
|
||||
if (custom->width > geom->base_width)
|
||||
custom->width -= geom->base_width;
|
||||
}
|
||||
else
|
||||
custom->width -= 1;
|
||||
|
||||
@ -242,7 +245,10 @@ static int setting_uint_action_left_custom_viewport_height(void *data, bool wrap
|
||||
if (custom->height <= 1)
|
||||
custom->height = 1;
|
||||
else if (settings->video.scale_integer)
|
||||
custom->height -= geom->base_height;
|
||||
{
|
||||
if (custom->height > geom->base_height)
|
||||
custom->height -= geom->base_height;
|
||||
}
|
||||
else
|
||||
custom->height -= 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user