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.

Newcomers AppGameKit Corner / Window resize and scaling contents

Author
Message
Ortu
DBPro Master
12
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 25th Jan 2018 22:47 Edited at: 26th Jan 2018 00:56
I feel like I'm missing something here: in a windowed application with window resizing allowed, resizing the window doesn't just change the window dimensions, it scales the content as well.

This is not standard behavior for desktop applications on any OS platform.

How do I keep a static scale of the contents when resizing a window?

thinking on it, Dbpro did scaling also I think, but i assume that was due to the d3ddevice
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Jan 2018 09:01
i think you need to set the VIRTUAL size as well so;
SetWindowSize( GetDeviceWidth(), GetDeviceHeight(), 0 )
SetVirtualResolution ( GetDeviceWidth(), GetDeviceHeight() )

Login to post a reply

Server time is: 2020-04-08 17:48:31
Your offset time is: 2020-04-08 17:48:31