Fix bug when maximum geometry was not POT.

This commit is contained in:
Themaister 2012-04-11 23:14:08 +02:00
parent 60cf4e569a
commit c7e6a0de06

View File

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