mirror of
https://github.com/libretro/RetroArch
synced 2025-03-16 07:21:03 +00:00
Fix CI compilation issues
This commit is contained in:
parent
e3a8e28edc
commit
154c2d388d
@ -6457,12 +6457,12 @@ void general_write_handler(rarch_setting_t *setting)
|
||||
(*setting->value.target.unsigned_integer +
|
||||
system->rotation) % 4);
|
||||
|
||||
//Update Custom Aspect Ratio values
|
||||
/* Update Custom Aspect Ratio values */
|
||||
video_driver_get_viewport_info(&vp);
|
||||
custom->x = 0;
|
||||
custom->y = 0;
|
||||
//Round down when rotation is "horizontal", round up when rotation is "vertical"
|
||||
//to avoid expanding viewport each time user rotate
|
||||
/* Round down when rotation is "horizontal", round up when rotation is "vertical"
|
||||
to avoid expanding viewport each time user rotates */
|
||||
if (get_rotation() %2){
|
||||
custom->width = MAX(1,(custom->width / geom->base_height)) * geom->base_height;
|
||||
custom->height = MAX(1,(custom->height/ geom->base_width )) * geom->base_width;
|
||||
|
@ -27449,4 +27449,4 @@ static void core_free_retro_game_info(struct retro_game_info *dest)
|
||||
|
||||
unsigned int get_rotation(){
|
||||
return configuration_settings->uints.video_rotation + runloop_system.rotation;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user