Original Post
This problem seem to be really fishy. As it it now, i have to comment out the call for the 32 bit rendering function. Else, the program will call that one too and thats no good. What could be wrong?
void fh_renderer::draw_sprite( int scrollx, int scrolly, fh_layer_list& l, SDL_Surface& dest )
{
switch ( l.image->format->BytesPerPixel )
{
case 1:
//render_8bit();
break;
case 2:
//render_16bit();
break;
case 3:
render_24bit( l.x - scrollx, l.y - scrolly, *l.image, dest );
break;
case 4:
// render_32bit( l.x - scrollx, l.x - scrolly, *l.image, dest );
break;
}
}