Changing resolution while already in full-screen mode?

Posts: 257
Joined: 2004.06
Post: #1
Okay, so I got a problem that I've been poking at for a couple days with no solution. Basically, I have an OpenGL project that goes into full-screen. No problems there. However, I'm having a bugger of a time trying to figure out how to change the monitor resolution again once I'm in full-screen mode. So say the user starts out at 1900 x 1200 and wants to lower the resolution down to 1024 x 768. I've figured out the calls that will set the monitor to this new resolution but my OpenGL context freaks out (and I am reshaping it to fit the new resolution) and pretty much draws garbage all over the screen. Do I have to create a new full-screen context or something? Am I skipping a critical step somewhere?

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Posts: 3,587
Joined: 2003.06
Post: #2
I seem to recall a code sample from Apple that did this. I think it was called Mode Whacker or something like that. Yeah, pretty sure you need an entirely new full screen context for every display mode.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  DPI and Resolution for Graphics mickyg 9 10,107 Apr 27, 2012 03:02 PM
Last Post: Andres Calil
  Changing Pixel Values using CG LIPH700 1 5,042 Nov 25, 2010 03:17 PM
Last Post: SethWillits
  switching screen resolution NelsonMandella 3 3,930 Apr 25, 2010 01:33 PM
Last Post: SethWillits
  Full Screen OpenGL Crashes Blacktiger 13 8,978 Feb 19, 2009 02:39 PM
Last Post: backslash
  OpenGL full screen mode leaves garbage on screen when exiting app Malarkey 5 5,896 Nov 19, 2008 12:51 PM
Last Post: Malarkey