Allow game window to resize on-the-fly when enabling/disabling borders

This commit is contained in:
negativeExponent 2019-12-02 22:18:35 +08:00
parent 6bdd6d1b22
commit 72d0725bac
1 changed files with 2 additions and 2 deletions

View File

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