Fix #805 segfault changing background with scaling filters

This commit is contained in:
noabody 2022-12-28 09:28:59 -07:00
parent 3c4982eddd
commit 85f6a84f26
1 changed files with 3 additions and 0 deletions

View File

@ -1317,6 +1317,9 @@ void S9xQueryDrivers()
bool8 S9xDeinitUpdate(int width, int height)
{
if (width <= 0 || height <= 0)
return false;
int yoffset = 0;
if (top_level->last_height > height)