Game Development Community

Screen size/resolution

by Ryan Ackley · in Torque Game Builder · 09/14/2005 (10:56 am) · 3 replies

Is there any possible way to set screen resolution lower than 640x480?

I try and get this error:
Quote:OpenGLDevice::setScreenMode -- Can't go smaller than 640x480!

I can do non-standard resolutions (I did 852x480 and that worked, 852x479 did not)

I wanted to create a small window (think minesweeper sizeish) and can't figure out if it is just my hardware (it is a laptop) or a limit in the engine, or with d3d/ogl (i tried both, just replace OpenGlDevice with D3DDevice in the message above).

Also don't want fullscreen (again, want it to be a windowed app, like minesweeper. You ever play full screen minesweeper and see those shaders when you blow up? me either :), though, if they want to see something like 320x240 fullscreen, more power to em, i guess...

edit: Those resolutions were all tried in windowed mode, fyi)

#1
09/14/2005 (11:04 am)
Not sure what would happen if you changed that, but the place its checked is in

engine/platformWin32/WinOGLVideo.cc line 247
engine/platformWin32/WinD3DVideo.cc line 653

engine/platformMacCarb/macCarbOGLVideo.cc line 1361
#2
09/14/2005 (11:07 am)
For linux its

engine/platformX86UNIX/x86UNIXOGLVideo.cc line 79 , though it doesnt send back the error in the linux version
#3
09/14/2005 (12:27 pm)
Interesting. Thanks matt, ill have to dig into the source (i havent much, just some fun scripting thus far).

Can you think of a reason why I shouldn't go below 640x480? It has been a few years since my OpenGL programming days (and that was in Ada... *shudder*). I don't recall enough about the ogl/d3d systems to think there would be a major reason we couldn't do this (in windowed at least).

Thanks again matt, you are a valuable asset to this community!