Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AutoScale virtual resolution

Author
Message
XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 20th May 2016 04:29
Hello

I've set up a screen of 1024x768 into a window of 1024x768.
When i resize the window, i get a black border.
I would like the screen to be stretched into the window.
How to make this ?

God is ALIVE
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 20th May 2016 08:39
SetDisplayAspect(-1) after setting your virtual resolution will stretch everythinig to fit.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th May 2016 09:16
SetScissor( 0, 0, 0, 0 ) Better than SetDisplayAspect(-1) in my opinion.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 20th May 2016 09:25
Very true! SetScissor(0,0,0,0) won't stretch everything to fit, but you can then draw outside your virtual res to fill the blank areas. Combined with the GetScreenBounds commands you can have pixel-perfect control, but XANAX 2B specifically wants the screen to be stretched into the window.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th May 2016 09:27
Oops, my bad.
XANAX 2B
20
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 21st May 2016 19:09
Thanks a lot
God is ALIVE
mrradd
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: CA, USA
Posted: 25th May 2016 17:15
I've wondered the same thing about virtual resolutions; I'll try set the aspect to see what I gain. Thanks for the tip @CJB. I'm glad I read this, because I was going to ask the same thing.

Login to post a reply

Server time is: 2024-03-29 15:37:57
Your offset time is: 2024-03-29 15:37:57