mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Fix bug when maximum geometry was not POT.
This commit is contained in:
parent
60cf4e569a
commit
c7e6a0de06
2
driver.c
2
driver.c
@ -500,7 +500,7 @@ void init_video_input(void)
|
||||
|
||||
const struct retro_game_geometry *geom = &g_extern.system.av_info.geometry;
|
||||
unsigned max_dim = max(geom->max_width, geom->max_height);
|
||||
unsigned scale = max_dim / SSNES_SCALE_BASE;
|
||||
unsigned scale = next_pow2(max_dim) / SSNES_SCALE_BASE;
|
||||
scale = max(scale, 1);
|
||||
|
||||
if (g_extern.filter.active)
|
||||
|
Loading…
x
Reference in New Issue
Block a user