1
0
Fork 0

Check return code of SDL_LockYUVOverlay. Should fix some rare crashes.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3650
This commit is contained in:
Peter Veenstra 2010-10-18 13:49:31 +00:00
parent 2a8b0b397f
commit 0d7b792d05

View file

@ -727,7 +727,7 @@ bool GFX_StartUpdate(Bit8u * & pixels,Bitu & pitch) {
return true;
#endif
case SCREEN_OVERLAY:
SDL_LockYUVOverlay(sdl.overlay);
if (SDL_LockYUVOverlay(sdl.overlay)) return false;
pixels=(Bit8u *)*(sdl.overlay->pixels);
pitch=*(sdl.overlay->pitches);
sdl.updating=true;