I have a widescreen monitor that by default streches any 4:3 display.. thats not good for making indie games, scretched games look ugly and you cannot ask a player to change their gfx settings.
So the only other way to do this is to scale the game to keep the 4:3 aspec but you will get black bar down the side which is better then a streched display.
Ok I believe what I have done is some kind of projection matrix but I realy dont know.
Heres the download, it includes the exe. and bmx. should you want to see the code, ignore most of it as its just a little game im working on and is very untidy. But it shows that mouse corrds still work even on a scaled display.
Note this program should not blow up your monitor the 2 display modes it uses are either your desktop resolution or a 640x480 resolution.
So what will the program do? it will launch using your desktop resolution and will scale all gfx and mouse operations so that the game maintians it 4:3 aspect (640x480) the trade off is black bars either side. the 2nd display is without scaling and will run the game in 640x480.
If you widescreen scretches normal 4:3 aspect you should see a 4:3 aspect on display 1 with black bars, the 2nd dosplay you should see your normal streched display.
heres the download: http://www.getperplexed.com/aspect_test.zip
please report what display you have 4:3 12:10 12:9 and what happened on both display modes.
So the only other way to do this is to scale the game to keep the 4:3 aspec but you will get black bar down the side which is better then a streched display.
Ok I believe what I have done is some kind of projection matrix but I realy dont know.
Heres the download, it includes the exe. and bmx. should you want to see the code, ignore most of it as its just a little game im working on and is very untidy. But it shows that mouse corrds still work even on a scaled display.
Note this program should not blow up your monitor the 2 display modes it uses are either your desktop resolution or a 640x480 resolution.
So what will the program do? it will launch using your desktop resolution and will scale all gfx and mouse operations so that the game maintians it 4:3 aspect (640x480) the trade off is black bars either side. the 2nd display is without scaling and will run the game in 640x480.
If you widescreen scretches normal 4:3 aspect you should see a 4:3 aspect on display 1 with black bars, the 2nd dosplay you should see your normal streched display.
heres the download: http://www.getperplexed.com/aspect_test.zip
please report what display you have 4:3 12:10 12:9 and what happened on both display modes.