Game Development Community

1.7.5 - "The specified mode is not supported by this device."

by Aditya Kulkarni · in Torque Game Builder · 09/23/2010 (12:41 pm) · 4 replies

My desktop resolution is "1280 768 32"

getDesktopResolution returns "1280 728 32"

When the program starts, it checks the desktop resolution and accordingly calls setScreenMode

Now because of getDesktopResolution, it tries to set an unsupported height which gives an error and the program crashes out.

#1
09/24/2010 (7:42 pm)
I don't have a solution for you, however I can confirm that getDesktopResolution() is wonky. I'm running at 1280 768 32 as well and getDesktopResolution() returns "1280 996 32". Because of this I too get the same "The specified mode is not supported by this device" error.
#2
09/24/2010 (8:18 pm)
Never had to deal with this but I remembered seeing the following:

www.torquepowered.com/community/forums/viewthread/117349

Hope it helps!
#3
09/25/2010 (4:28 pm)
Great, thanks Patrick.
#4
10/04/2010 (10:03 pm)
I think getDesktopResolution() subtracts the height of the start menu at the bottom (or the Mac menu at the top).