Fix CI compilation issues

This commit is contained in:
Rémi 2019-11-17 20:18:42 +01:00
parent e3a8e28edc
commit 154c2d388d
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}
}