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.

DarkBASIC Professional Discussion / From fullscreen to desktop - Turn off autoscaling?

Author
Message
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 17th Sep 2013 00:23 Edited at: 17th Sep 2013 00:24
Hey everybody,

Got all my current options added in my game's options menu. I got it working fine, even switching between resolution and between windowed and full screen mode.

The only problem I encounter is that de windowed scale (after being set from full screen to windowed) is that of the set resolution (including borders and such). That means all the graphics are a bit cropped and out of scale.

First I thought, why not rescale the window to include the borders and titlebar, but then again, not everyone might be using the same windows theme and such.

I haven't found a solution for this so any help is greatly appreciated!

Regards Sph!nx
www.mental-image.net
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 17th Sep 2013 02:33
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 17th Sep 2013 03:07
You sir, are awesome!

Regards Sph!nx
www.mental-image.net
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 17th Sep 2013 11:36
You are welcome. Only I don't know if it works with Windows 8 or Wine.

Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 17th Sep 2013 14:43 Edited at: 17th Sep 2013 14:44
Ah, good to know, lucky we also have a Win 8 system. Wine is not that important to me. I will test this later today and will post the result here!

Edit
I will make a new post instead of edit so you get notified!

Regards Sph!nx
www.mental-image.net
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 17th Sep 2013 22:28
It works great on Windows 8!

Regards Sph!nx
www.mental-image.net
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 17th Sep 2013 23:23
good

Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 19th Sep 2013 02:19
What about applying an aspect ratio to the camera after the window has been adjusted?

AspectRatio# = AspectX#/AspectY#
Set Camera Aspect 0, AspectRatio#

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Sep 2013 10:46
Camera aspect only affects 3d, not any 2d.

Login to post a reply

Server time is: 2026-07-07 00:10:03
Your offset time is: 2026-07-07 00:10:03