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 2 of 2

Thread: Choosing pixel format after Direct Draw

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Choosing pixel format after Direct Draw

    Hi, All!

    I've got a problem. I need that my prog work on full screen in different resolution, so : I create window; switch video mode by using Direct Draw on needed resolution; get window DC by GetDC; ChoosePixelFormat and so on. On Windows 98 this way works perfectly and I can get OpenGL even on 300x200 on fullscreen.
    But on Windows 2000 when I try ChoosePixelFormat for DC that I get from GetDC program has crashed.

    What happend? Can I avoid it? How I can do this?

    Mayday, Mayday!! Please respond anybody!!!

    Yours, Mad Max.

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    87

    Re: Choosing pixel format after Direct Draw

    Perhaps you shouldn't stick with DirectX...
    Just use ChangeDisplaySettings / EnumDisplaySettings to change to your screen mode. That's working fine for me.

Posting Permissions

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