Lock the surface if needed, then call init_row_map()
This commit is contained in:
parent
eb06777aa0
commit
f14b11dfd8
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue