Lock the surface if needed, then call init_row_map()

This commit is contained in:
Dimitris Panokostas 2019-01-11 23:34:21 +01:00
parent eb06777aa0
commit f14b11dfd8

View file

@ -738,13 +738,17 @@ int check_prefs_changed_gfx()
int lockscr()
{
if (SDL_MUSTLOCK(screen))
SDL_LockSurface(screen);
init_row_map();
return 1;
}
void unlockscr()
{
if (SDL_MUSTLOCK(screen))
SDL_UnlockSurface(screen);
}
#ifdef USE_DISPMANX