return( 0 );
}
+
/*****************************************************************************
* vout_SDLSetPalette: sets an 8 bpp palette
*****************************************************************************
/* Create a display surface with a grayscale palette */
SDL_Color colors[256];
int i;
- intf_ErrMsgImm( "palettin'\n");
/* Fill colors with color information */
- for(i=0;i<256;i++){
- colors[i].r=red[i]>>8;
- colors[i].g=green[i]>>8;
- colors[i].b=blue[i]>>8;
+ for( i = 0; i < 256; i++ )
+ {
+ colors[ i ].r = red[ i ] >> 8;
+ colors[ i ].g = green[ i ] >> 8;
+ colors[ i ].b = blue[ i ] >> 8;
}
/* Set palette */
- if(SDL_SetColors(p_vout->p_sys->p_display, colors, 0, 256) == 0)
- intf_ErrMsgImm( "error\n");
+ if( SDL_SetColors(p_vout->p_sys->p_display, colors, 0, 256) == 0 )
+ {
+ intf_ErrMsg( "vout error: failed setting palette\n" );
+ }
}
-
-
-
-
/*****************************************************************************
* vout_SDLDisplay: displays previously rendered output
*****************************************************************************