When starting ioq3 for the first time the default resolution is always set to some lowres default which can be quite annoying, forcing the user to go fiddle with the system settings in order to get something usable.
This patch makes ioq3 automatically start up using the same resolution as the desktop is using when r_mode is set to -2
If this patch is accepted, it could be wise to have r_mode default to -2
Patch was written for ReactionQuake 3 by Makro (Andrei Drexler)
I added a similar r_mode -2 for using desktop resolution to ioq3 in r2145, but Timbo didn't seem to want it. It was removed in r2147.
Turtle Arena has r_mode -2 as default for reasons listed above.
r_mode can still default to what ever it defaults to now and then this patch has no effect on the current codebase, except giving users/modders the choice of an easy, problem free way to handle resolution issues.
It was setting the default that I was wary about. It's all very well saying "surely nobody these days still has a computer that can't do display sized OpenGL windows!", but past experience tends to indicate that whenever you fuck with something along those lines, somebody, somewhere has a problem with it. So it's best to stick with the status quo unless there is a good reason not to. This patch looks fine though, as it doesn't change the default behaviour.
Well, Zack: Why not reimplement your work from r2145, and just make sure r_mode -2 is not default?
I agree with Timbo that we should leave the default at 640x480 untouched, but add r_mode -2 as an option to users.
Obviously, it should be documented in the README as well.
Created attachment 3068 [details] Desktop resolution patch