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