platform sdl, preliminary window resizing fixes

picodrive doesn't handle resize events, so it's not really working :-/
it however uncovered some bugs and strange behaviour, though
This commit is contained in:
kub 2022-03-06 18:39:46 +00:00
parent e48f3f2795
commit f8aaa200cf
5 changed files with 95 additions and 35 deletions

View file

@ -97,10 +97,9 @@ static void make_bg(int no_scale, int from_screen)
pp = g_screen_ppitch;
}
if (src == NULL) {
memset(g_menubg_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2);
memset(g_menubg_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2);
if (src == NULL)
return;
}
if (!no_scale && g_menuscreen_w / w >= 2 && g_menuscreen_h / h >= 2)
{