Widescreen display?

Blitz3D Forums/Blitz3D Programming/Widescreen display?

fredborg(Posted 2005) [#1]
Hi,

I just got a new laptop yesterday with a nice 17" widescreen display. I'm wondering if there is any way in Blitz3D to detect if a display is widescreen, as all display modes are stretched even if they are in 4:3 pixel format. So it would be good to be able to take this into account when making stuff.

Does anyone know if the higest resolution on a widescreen is always a "wide" format. On my laptop it's 1440x900, but maybe it's in a different aspect on some monitors?


Damien Sturdy(Posted 2005) [#2]
Thats standard WXGA ratio, that is. Feel safe to use it.


t3K|Mac(Posted 2005) [#3]
hi fredborg, nice to see you here ;) when is the update to giles btw? ;)

i have also a widescreen notebook (12", max 1280x768), but my display is configured to NOT stretch non-wide resolutions. i have small black borders then, but aspect-ratio is correct.


VP(Posted 2005) [#4]
The way to detect it is to assume 640x480 is your normal 4:3 ratio display (and therefore so is 800:600, 1024x768, 1280x960, 1600x1200). Widescreen resolutions are 1600x900 (obviously 16:9), 1920x1200 (16:10), 1920x1080 (16:9).

There are others of course. Your laptop at 1440x900 is a 16:10 ratio (divide 1440 by 900 = 1.6 = 16:10 ratio). So all you have to do is know that there are 3 comon aspect ratios (4:3, 16:9 and 16:10) and that you find out what ratio your display is by taking its native resolution and dividing the horizontal resolution by the vertical one.

The only one that doesn't fit neatly into any category is the fairly common 1280x1024. Most people just assume it's a square pixel resolution the same as 800x600 or 1024x768 but they are of course entirely wrong :) Treating 1280x1024 as a 4:3 aspect doesn't really detract from the displayed image though, so I shouldn't worry about it.


smilertoo(Posted 2005) [#5]
Thats great except most widescreen 20" tft's are 1680x1050.


VP(Posted 2005) [#6]
Which is as close as damnit to 16:9 as makes no odds really. I'd be shocked if they weren't actually a 16:9 aspect when you measure the screen.


fredborg(Posted 2005) [#7]
Hi,

Ok, it's probably best to include an option for widescreen then. On my laptop all resolutions are stretched to widescreen, even when the pixel aspects are 4:3, while on t3k|mac's machine they are not.

Thanks for the help!

Oh, and t3k|mac: Not as far away as it has been :)


smilertoo(Posted 2005) [#8]
mine is 16:10 for some reason.


t3K|Mac(Posted 2005) [#9]
@fredborg: i have a dell latitude x1. i can set display properties to stretch or not to stretch the resolution. maybe you should check newer drivers for your system...


fredborg(Posted 2005) [#10]
Oh, yeah found it now, it was well hidden in the display properties. But still it's good to have an option in there, as quite a lot of screen space is lost if you disable display scaling/stretching.

Again thanks for the help!


WedgeBob(Posted 2005) [#11]
Yeah, I hooked up my desktop to an LCD HDTV, so that's in the 16:9 format, as well as my notebook which is a 15.4" WXGA itself, so having said that, your dimensions when you write the programs have to follow suit to either the 15:9, or 16:9 formats. An 640x480 would be a 4:3, e.g. However, a 15:9 would be 640x384 would be a 15:9, and a 640x360 would be a 16:9. Those are your basic dimensions to watch out for, if you're doing basic widescreens. You could go bigger, but you just have to follow the aspect ratio and size up your dimensions using multiples of horizontal and vertical units corresponding to those formats.