Quartz implementation for SDL_DisplayYUVOverlay() was returning non-zero on
authorRyan C. Gordon <icculus@icculus.org>
Wed, 15 Mar 2006 05:52:31 +0000
changeset 1541 157001382dfd
parent 1540 a0dd1bc34114
child 1542 a8bf1aa21020
Quartz implementation for SDL_DisplayYUVOverlay() was returning non-zero on error, instead of zero, contrary to documentation. Fixes Bugzilla #165.
src/video/quartz/SDL_QuartzYUV.m
--- a/src/video/quartz/SDL_QuartzYUV.m	Wed Mar 15 04:32:49 2006 +0000
+++ b/src/video/quartz/SDL_QuartzYUV.m	Wed Mar 15 05:52:31 2006 +0000
@@ -83,7 +83,7 @@
         SDL_SetError ("DecompressSequenceFrameS failed");
     }
 
-    return err == noErr;
+    return err != noErr;
 }
 
 static void QZ_FreeHWYUV (_THIS, SDL_Overlay *overlay) {