float g;
float b;
CODE:
+ RETVAL = -1;
+#ifdef WINDOWS
+ warn( "SDL_SetGamma is unsupported in Windows. ");
+#else
RETVAL = SDL_SetGamma(r,g,b);
-
+#endif
OUTPUT:
RETVAL
AV* gt;
AV* bt;
CODE:
+
+ RETVAL = -1;
+#ifdef WINDOWS
+ warn( "SDL_SetGammaRamp is unsupported in Windows. " );
+#else
Uint16 *redtable, *greentable, *bluetable;
redtable = av_to_uint16(rt);
greentable = av_to_uint16(gt);
if( redtable != NULL) { safefree(redtable); }
if( greentable != NULL) { safefree(greentable); }
if( bluetable != NULL) { safefree(bluetable); }
-
-
+#endif
OUTPUT:
RETVAL