Results 1 to 2 of 2

Thread: ChangeDisplaySettings

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    US
    Posts
    11

    ChangeDisplaySettings

    What difference does it make if I pass 0 for the flags to ChangeDisplaySettings or if I pass CDS_FULLSCREEN? They seem kinda the same to me, and the help file doesn't help on that at all. Which is best for games?

    Oh yeah, where can I get the official OpenGL programming guide/reference manual? All I have is a badly organized help file that came with VC++.

    Thanks for the help!

    -Evan

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    London UK
    Posts
    195

    Re: ChangeDisplaySettings

    You should look in the .chm for GDI from the Platform SDK:
    0 - The graphics mode for the current screen will be changed dynamically.

    CDS_FULLSCREEN - The mode is temporary in nature.
    Windows NT/2000: If you change to and from another desktop, this mode will not be reset

    What that means...
    If your program crashes and you have changed the resolution with CDS_FULLSCREEN does it seems like it will be restored.

    NeHe has links to the books on his site. The red book can also be downloaded from gamedev.

Similar Threads

  1. ChangeDisplaySettings & CDS_FULLSCREEN
    By Mark Shaxted in forum OpenGL: Windows
    Replies: 2
    Last Post: 01-30-2008, 08:15 AM
  2. ChangeDisplaySettings(&dm,0) chokes on 95
    By asdf asdf in forum OpenGL: Windows
    Replies: 7
    Last Post: 11-11-2004, 03:41 PM
  3. Win32 ChangeDisplaySettings question
    By XFire in forum OpenGL: Advanced Coding
    Replies: 15
    Last Post: 09-08-2003, 10:54 PM
  4. ChangeDisplaySettings Vs GL_BUFFER_BITS
    By MPech in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-20-2002, 11:07 PM
  5. Don' know how to fill DEVMODE parameter in ChangeDisplaySettings()?
    By Least Lee in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-08-2001, 06:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean