FindPixelFormat returns PixelFormat_INVALID, not NUM_PixelFormat

This commit is contained in:
Chris Danford
2005-10-02 04:55:27 +00:00
parent ced16a3cf5
commit 4f44d6591f
@@ -128,7 +128,7 @@ static int FindCompatibleAVFormat( PixelFormat &pixfmt, bool HighColor )
true /* realtime */
);
if( pixfmt == NUM_PixelFormat )
if( pixfmt == PixelFormat_INVALID )
continue;
return i;