From e3a8e28edc28a5a2784debbe021b5ba97a1369bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Sun, 17 Nov 2019 18:34:19 +0100 Subject: [PATCH] Using MAX macro. --- menu/menu_setting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 7605b7b0bb..c87e332c71 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -6464,8 +6464,8 @@ void general_write_handler(rarch_setting_t *setting) //Round down when rotation is "horizontal", round up when rotation is "vertical" //to avoid expanding viewport each time user rotate 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; + custom->width = MAX(1,(custom->width / geom->base_height)) * geom->base_height; + custom->height = MAX(1,(custom->height/ geom->base_width )) * geom->base_width; } else { custom->width = ((custom->width + geom->base_width - 1) / geom->base_width) * geom->base_width; custom->height = ((custom->height + geom->base_height - 1) / geom->base_height) * geom->base_height;