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
    Member 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.

Similar Threads

  1. 2D - fast direct pixel manipulation
    By vinzf in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 11-15-2011, 12:09 PM
  2. direct draw from one texture to another using FBOs
    By alexopenglbeginner in forum OpenGL: Windows
    Replies: 4
    Last Post: 09-11-2009, 08:06 AM
  3. Get the pixel / color format of the draw buffer?
    By taifunbrowser in forum OpenGL: Windows
    Replies: 4
    Last Post: 07-05-2009, 11:08 AM
  4. Pixel Format vs. Display Format
    By Nakoruru in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-16-2002, 05:17 AM
  5. How to convert GL_RGB pixel data format (image) to GL_RGBA format
    By Coloro.cl in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 02-13-2002, 06:01 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