1
General discussions / Sigvatr's Newbie Thread
« on: September 20, 2009, 12:07:45 am »
I'm having issues getting Fullscreen to work in Windows Vista. When I run my SFML app in XP, there are no problems changing to the new screen resolution. On my Vista computer, the application doesn't technically become fullscreen. Instead, it stretches the RenderWindow to the size of the current screen resolution and also includes a title and border.
Here's my code:
Here's my code:
Code: [Select]
/* Create window */
RenderWindow *Annihilator = new RenderWindow;
Annihilator->Create(
VideoMode( windowWidth, windowHeight, 32 ), /* Window width, height and color bit depth */
"Annihilator Game Engine Version 0.1.0.0", /* Window title */
Style::Fullscreen, /* Window mode */
WindowSettings( 24, 8, 0 ) /* Depth buffer, stencil buffer and antialiasing level */
);
/* Set window parameters */
Annihilator->SetFramerateLimit( 60 );
Annihilator->UseVerticalSync( 1 );
Annihilator->ShowMouseCursor( 0 );
Annihilator->SetCursorPosition( windowWidth / 2, windowHeight / 2 );
Annihilator->PreserveOpenGLStates( 1 );