Commit 9451c9b9 authored by Sam Hocevar's avatar Sam Hocevar

 . just removed a forgotten debug message in the setpalette code
parent cbb9cfbf
...@@ -186,6 +186,7 @@ int vout_SDLManage( vout_thread_t *p_vout ) ...@@ -186,6 +186,7 @@ int vout_SDLManage( vout_thread_t *p_vout )
return( 0 ); return( 0 );
} }
/***************************************************************************** /*****************************************************************************
* vout_SDLSetPalette: sets an 8 bpp palette * vout_SDLSetPalette: sets an 8 bpp palette
***************************************************************************** *****************************************************************************
...@@ -198,25 +199,23 @@ void vout_SDLSetPalette( p_vout_thread_t p_vout, u16 *red, u16 *green, u16 *blue ...@@ -198,25 +199,23 @@ void vout_SDLSetPalette( p_vout_thread_t p_vout, u16 *red, u16 *green, u16 *blue
/* Create a display surface with a grayscale palette */ /* Create a display surface with a grayscale palette */
SDL_Color colors[256]; SDL_Color colors[256];
int i; int i;
intf_ErrMsgImm( "palettin'\n");
/* Fill colors with color information */ /* Fill colors with color information */
for(i=0;i<256;i++){ for( i = 0; i < 256; i++ )
colors[i].r=red[i]>>8; {
colors[i].g=green[i]>>8; colors[ i ].r = red[ i ] >> 8;
colors[i].b=blue[i]>>8; colors[ i ].g = green[ i ] >> 8;
colors[ i ].b = blue[ i ] >> 8;
} }
/* Set palette */ /* Set palette */
if(SDL_SetColors(p_vout->p_sys->p_display, colors, 0, 256) == 0) if( SDL_SetColors(p_vout->p_sys->p_display, colors, 0, 256) == 0 )
intf_ErrMsgImm( "error\n"); {
intf_ErrMsg( "vout error: failed setting palette\n" );
}
} }
/***************************************************************************** /*****************************************************************************
* vout_SDLDisplay: displays previously rendered output * vout_SDLDisplay: displays previously rendered output
***************************************************************************** *****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment