[SDL] SDL_FillRect not doing anything

Albert Fernández Marsal afmarsal at cirsa.com
Wed Sep 28 06:31:51 PDT 2005


	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





More information about the SDL mailing list