Skip to content

Commit

Permalink
Set base_width/base_height to sane dimensions (480x272)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
inactive123 committed Aug 15, 2021
1 parent 92e7534 commit 23f1443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 23f1443

Please sign in to comment.