From 23f1443949255f188b1ec5e2ebd38281fadaf948 Mon Sep 17 00:00:00 2001 From: Autechre Date: Sun, 15 Aug 2021 10:03:19 +0200 Subject: [PATCH] Set base_width/base_height to sane dimensions (480x272) base_width/base_height should be set to the lowest/default PSP internal resolution, which in this case is 480x272. Setting base_width/height the same as max_width/max_height would create problems with windowed mode in RetroArch, it would try to create a huge window (often times far exceeding the desktop size). --- libretro/libretro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 66c080d2c0..cab2b7f4a6 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -495,8 +495,8 @@ void retro_get_system_av_info(struct retro_system_av_info *info) info->timing.fps = 60.0f / 1.001f; info->timing.sample_rate = SAMPLERATE; - info->geometry.base_width = g_Config.iInternalResolution * 480; - info->geometry.base_height = g_Config.iInternalResolution * 272; + info->geometry.base_width = 480; + info->geometry.base_height = 272; info->geometry.max_width = g_Config.iInternalResolution * 480; info->geometry.max_height = g_Config.iInternalResolution * 272; info->geometry.aspect_ratio = 480.0 / 272.0; // Not 16:9! But very, very close.