From 72d0725bacd0b84f324b077f599a60ede760b4e8 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Mon, 2 Dec 2019 22:18:35 +0800 Subject: [PATCH] Allow game window to resize on-the-fly when enabling/disabling borders --- src/libretro/libretro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libretro/libretro.cpp b/src/libretro/libretro.cpp index af47199f..b2a8d71b 100644 --- a/src/libretro/libretro.cpp +++ b/src/libretro/libretro.cpp @@ -581,8 +581,8 @@ void retro_get_system_av_info(struct retro_system_av_info *info) if (type == IMAGE_GB) { aspect = !gbBorderOn ? (10.0 / 9.0) : (8.0 / 7.0); - maxWidth = sgbWidth; - maxHeight = sgbHeight; + maxWidth = !gbBorderOn ? gbWidth : sgbWidth; + maxHeight = !gbBorderOn ? gbHeight : sgbHeight; } info->geometry.base_width = systemWidth;