mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-19 19:30:42 +00:00
improved lock
This commit is contained in:
parent
4229c59e8b
commit
a8cf546394
@ -1735,8 +1735,9 @@ void VideoInterrupt(void)
|
||||
do_toggle_fullscreen();
|
||||
|
||||
#ifdef VIDEO_ROOTLESS
|
||||
bool f = update_display_mask(sdl_window, host_surface->w, host_surface->h);
|
||||
spin_lock(&force_redraw_lock);
|
||||
force_redraw |= update_display_mask(sdl_window, host_surface->w, host_surface->h);
|
||||
force_redraw |= f;
|
||||
spin_unlock(&force_redraw_lock);
|
||||
#endif
|
||||
present_sdl_video();
|
||||
|
Loading…
x
Reference in New Issue
Block a user