SDL_FillRect not doing anything

heya,
I want to clear the display surface, so i call:

if ( SDL_FillRect(	SDL_GetVideoSurface(),
			NULL,
			SDL_MapRGB(	SDL_GetVideoSurface()->format,
					0, 0, 0) ) != 0 )
{
	fprintf( stderr, "Couldn\'t clear the surface.\n" );
	bail( );
}

with bail printing errors and exiting the program via exit()

trouble is; nothing happens, the call seems to go fine, but nothing results from
it … i’m not double buffered, and i’v been checkin all my previous errors …
so any advice?

cheers
-peter

maybe you’re missing a SDL_Flip() call …++++++++++++++++++++++++++++++++
ALBERT FERNANDEZ MARSAL
CIRSA INTERACTIVE CORP. SL
Analista senior y programador
++++++++++++++++++++++++++++++++

-----Mensaje original-----
De: sdl-bounces+afmarsal=cirsa.com at libsdl.org
[mailto:sdl-bounces+afmarsal=cirsa.com at libsdl.org] En nombre de peter
Enviado el: martes, 27 de septiembre de 2005 23:10
Para: sdl at libsdl.org
Asunto: [SDL] SDL_FillRect not doing anything

heya,
I want to clear the display surface, so i call:

if ( SDL_FillRect(	SDL_GetVideoSurface(),
			NULL,
			SDL_MapRGB(

SDL_GetVideoSurface()->format,
0, 0, 0) ) != 0 )
{
fprintf( stderr, “Couldn’t clear the surface.\n” );
bail( );
}

with bail printing errors and exiting the program via exit()

trouble is; nothing happens, the call seems to go fine, but nothing results
from
it … i’m not double buffered, and i’v been checkin all my previous errors

so any advice?

cheers
-peter


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

i don’t think thats likely because;

  1. i’m not using double buffering
  2. its already bliting an image fine …

i’v actualy tried using flip() since i first tried responding to this post …