Revert "Attempt to correct integer scaling left/right"

This reverts commit bf8fa069111d4b94c4f1f2fe1c950db83b7d74c0.
This commit is contained in:
twinaphex 2015-09-27 19:10:32 +02:00
parent bf8fa06911
commit c272a42f21
2 changed files with 5 additions and 4 deletions

View File

@ -1313,3 +1313,4 @@ unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_input)
return ret;
}

View File

@ -926,7 +926,7 @@ static int setting_uint_action_left_custom_viewport_width(void *data, bool wrapa
video_driver_viewport_info(&vp);
if (settings->video.scale_integer)
custom->width = (custom->width % geom->base_width - 1) * geom->base_width;
custom->width -= geom->base_width;
else
custom->width -= 1;
@ -948,7 +948,7 @@ static int setting_uint_action_right_custom_viewport_width(void *data, bool wrap
video_driver_viewport_info(&vp);
if (settings->video.scale_integer)
custom->width = (custom->width % geom->base_width + 1) * geom->base_width;
custom->width += geom->base_width;
else
custom->width += 1;
@ -970,7 +970,7 @@ static int setting_uint_action_left_custom_viewport_height(void *data, bool wrap
video_driver_viewport_info(&vp);
if (settings->video.scale_integer)
custom->height = (custom->height % geom->base_height - 1) * geom->base_height;
custom->height -= geom->base_height;
else
custom->height -= 1;
@ -992,7 +992,7 @@ static int setting_uint_action_right_custom_viewport_height(void *data, bool wra
video_driver_viewport_info(&vp);
if (settings->video.scale_integer)
custom->height = (custom->height % geom->base_height + 1) * geom->base_height;
custom->height += geom->base_height;
else
custom->height += 1;