Hello,
I’m having a little update problem. Sometimes I get a black flash on
the screen. Here’s the code and executable (requires SDL.dll and SGE.dll):
Hi,
see this (reformatted) code from ‘sge_blib.cpp’ in the sge library :
//================================================================
// Draws a gourand shaded trigon
//================================================================
void sge_FadedTrigon(SDL_Surface *dest,
Sint16 x1,Sint16 y1,
Sint16 x2,Sint16 y2,
Sint16 x3,Sint16 y3,
Uint32 c1,Uint32 c2,Uint32 c3)
{
Sint16 y;
if( y1==y3 ) // !!!
return; // !!!
Uint8 c=0;
SDL_Color col1;
SDL_Color col2;
…
}
when y1 equals y3 it returns, drawing nothing.
I removed this test and it seemed to work, but (presumably) there
is a reason for it being like this (maybe an as-yet unimplemented
special case).
You could try the library authors as it isn’t an SDL problem as such,
cheers,
John.> ----- Original Message -----
From: jvffprogramming@ieg.com.br (Janito Vaqueiro Ferreira Filho)
To: “SDL Mailing List”
Sent: Sunday, May 25, 2003 4:24 PM
Subject: [SDL] Black flashHello,
I’m having a little update problem. Sometimes I get a black flash on
the screen. Here’s the code and executable (requires SDL.dll and SGE.dll):www.jvffprogramming.hpg.com.br/SDL_3d.tar.gz
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl