void fade(const std::string& surface, int seconds, bool fade_out)
{
Surface* sur = new Surface(datadir + surface, IGNORE_ALPHA);
-black_fade(sur, seconds, fade_out);
+fade(sur, seconds, fade_out);
delete sur;
}
while(alpha >= 0 && alpha < 256)
{
+ surface->draw(0,0,(int)alpha);
+ flipscreen();
+
old_time = cur_time;
cur_time = SDL_GetTicks();
- surface->draw(0,0,(int)alpha, true);
-
/* Calculate the next alpha value */
float calc = (float) ((cur_time - old_time) / seconds);
if(fade_out)