Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Screen resolution Problem.

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2000
    Location
    Sweden
    Posts
    29

    Screen resolution Problem.

    When I set my OGL app. to run in fullscreen and changing the bitdepth, it cant set the old resolution in windows back when terminating the app.

    I run windows in 1280x1024x32.
    My app. sets resoulution to 800x600x16.
    When terminating, windows stays in 800x600.
    Why?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,982

    Re: Screen resolution Problem.

    If you use ChangeDisplaySettings() to go fullscreen, you need to call it again when the application is quitting, but now like this: ChangeDisplaySettings(NULL, 0). This will set the screen resolution to the original desktop settings.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2000
    Location
    Sweden
    Posts
    29

    Re: Screen resolution Problem.

    I do that, that's the problem. It should work. I tried it out on another computer with a different video card. Same thing happened.

    This only occur when I change the bit depth though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •