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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - soaproap

Pages: [1]
1
Update: I am now using:
VideoMode::getFullscreenModes().at(0)
This seems to work, although I haven't tested it enough to be sure my issue is entirely gone.

2
Hello!

I am working on developing a game using SFML. It runs in fullscreen, and the RenderWindow is initialized as follows:

RenderWindow *app = nullptr;
int
main ()
{
    app = new RenderWindow(VideoMode::getDesktopMode(), "mystery", Style::Fullscreen);
    // ... rest of game here
}
 

Although it runs fine when testing from within Code::Blocks IDE, I experience an issue under the following circumstances:
  • When I compile the 'Release' build of my project and attempt to run it outside of the IDE.
  • When I enable anti-aliasing or add any instructions in my game loop that slow down my game significantly.

The problem is, under these conditions, everything in the window is offset from the top by several hundred pixels (although click detection occurs as if it were not.) I would appreciate if somebody could tell me what is wrong (or ask of more information from me about my code, if I haven't provided enough!) Thanks!

Pages: [1]