(svn r27775) -Fix [FS#6510]: Insufficient thread synchronisation when switching blitters. (JGR)
This commit is contained in:
@@ -817,11 +817,18 @@ bool VideoDriver_SDL::ToggleFullscreen(bool fullscreen)
|
||||
}
|
||||
|
||||
bool VideoDriver_SDL::AfterBlitterChange()
|
||||
{
|
||||
return CreateMainSurface(_screen.width, _screen.height);
|
||||
}
|
||||
|
||||
void VideoDriver_SDL::AcquireBlitterLock()
|
||||
{
|
||||
if (_draw_mutex != NULL) _draw_mutex->BeginCritical(true);
|
||||
bool ret = CreateMainSurface(_screen.width, _screen.height);
|
||||
}
|
||||
|
||||
void VideoDriver_SDL::ReleaseBlitterLock()
|
||||
{
|
||||
if (_draw_mutex != NULL) _draw_mutex->EndCritical(true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* WITH_SDL */
|
||||
|
Reference in New Issue
Block a user