i'm having some trouble with working at fullscreen. this is the code:
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCREEN_BPP 32
bool fullscreen = false;
void MudaVideo(int t)
{
fullscreen = (t == SDL_FULLSCREEN);
screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, t);
}
to change the video i just call it this way:
MudaVideo(SDL_FULLSCREEN);
or
MudaVideo(SDL_SWSURFACE);
this seems to work fine on the computer i'm working. the problem is, when i take the project to another computer, the fullscreen doesn't work. i mean, it really turns into full screen, but the screen is not streched.
when working on the window mode, my game occupies a region of 480 X 640 pixels. when i turn to fullscreen on the computer i'm working, the region is streched, the images are zoomed, and occupy the full monitor.
but i tried to take it to two other different pcs, and it happens that when i turn to fullscreen, the image does not strech, it remains occupying a region of 480 X 640 pixels, and is surrounded by black.
what could it be?? is this common??
this is sdl for windows compiled on dev c++.
thanks.