Fb-console bug

Hi,

I’m using VESA-FBDev driver (kernel 2.4.8) with 800x600x16. If I start this
program which wants 640x480 on console 1, switch to console 2 and back to
console 1 I can read “foo” below of the now smaller blue screen.
Is this a SDL bug?

#include <SDL/SDL.h>
int main(int argc, char *argv[])
{
int i,done=1; SDL_Surface *screen;
screen=SDL_SetVideoMode(640,480,16,SDL_SWSURFACE);
for (i=0;i<50;i++) printf(“Foo\n”);
SDL_FillRect(screen, NULL, screen->format->Bmask);
SDL_UpdateRect(screen,0,0,0,0);
while(done) {
SDL_Event event;
while ( SDL_PollEvent(&event) ) {
if ( event.type == SDL_QUIT )done = 0;
if ( event.type == SDL_KEYDOWN )
if ( event.key.keysym.sym == SDLK_ESCAPE )done = 0;
}
}
SDL_Quit(); return 0;
}

Stephan