Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sigvatr's Newbie Thread  (Read 21282 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Sigvatr's Newbie Thread
« Reply #45 on: September 17, 2009, 03:10:26 pm »
Ok I see. So yes, sf::Image always returns you an array of 32 bits RGBA pixels (like the documentation (should) say) ;)
Laurent Gomila - SFML developer

Sigvatr

  • Newbie
  • *
  • Posts: 32
    • MSN Messenger - msn@sigvatr.com
    • AOL Instant Messenger - SigvatrAIM
    • View Profile
    • http://www.sigvatr.com
Sigvatr's Newbie Thread
« Reply #46 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:

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 );

 

anything