Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzYUV.m @ 1541:157001382dfd
Quartz implementation for SDL_DisplayYUVOverlay() was returning non-zero on
error, instead of zero, contrary to documentation.
Fixes Bugzilla #165.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 15 Mar 2006 05:52:31 +0000 |
parents | 376665398b25 |
children | 9f59d4c5aaea |
comparison
equal
deleted
inserted
replaced
1540:a0dd1bc34114 | 1541:157001382dfd |
---|---|
81 codecFlagUseImageBuffer, &flags, nil ) != noErr ) ) | 81 codecFlagUseImageBuffer, &flags, nil ) != noErr ) ) |
82 { | 82 { |
83 SDL_SetError ("DecompressSequenceFrameS failed"); | 83 SDL_SetError ("DecompressSequenceFrameS failed"); |
84 } | 84 } |
85 | 85 |
86 return err == noErr; | 86 return err != noErr; |
87 } | 87 } |
88 | 88 |
89 static void QZ_FreeHWYUV (_THIS, SDL_Overlay *overlay) { | 89 static void QZ_FreeHWYUV (_THIS, SDL_Overlay *overlay) { |
90 | 90 |
91 CDSequenceEnd (yuv_seq); | 91 CDSequenceEnd (yuv_seq); |