...but I did finally and conclusively clean up the whole vid.width/vid.conwidth/glwidth mess. I'm sure that lots of beginning Q1 coders have been bitten by this at one point or another, and it's always rankled with me that I never really straightened it out. It's done now: glwidth and glheight are utterly gone forever, vid.width and vid.height are used for all of the 3D stuff (as they are initially set to in gl_vidnt.c), and vid.conwidth and vid.conheight are used for all of the 2D stuff. Far more logical and sensible.
It's worth commenting that as part of this, I've set the 2D resolution to default to the same aspect ratio as the 3D resolution, but never less than 640 x 480. What this means is that on widescreen monitors, the 2D text and icons will be correctly proportioned. The console background, of course, remains stretched to fill the window. I've also removed the -conwidth and -conheight command-line options. I'll probably put them back in as cvars for those who prefer to scrunch their 2D stuff down, as there's no reason whatsoever for these to be only available as startup options.
At the same time, I've also removed glx and gly from the video system forever. These were just hacks to allow sizing down the screen for 1996-class cards, and they have no place in 2008. I'd actually partially done this ages ago (and in virtually every engine I've ever done), but this time I've completed the job, and just wanted to mention it.
Sunday, May 25, 2008
Nothing much done today...
Posted by
mhquake
at
11:46 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment