I understood thanks to the wiki that if you put that SDL_UpdateRect(screen,0,0,0,0) it goes perfect and updates the whole screen. I must say that i'm using the library SDL_image. Zaka.