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 Studio Chat / [SOLVED] App not adjusting size to fit main Window

Author
Message
Creative Magic Man
11
Years of Service
User Offline
Joined: 14th Nov 2012
Location: Frinton On Sea, Essex, UK
Posted: 14th May 2020 21:32
I have two monitors and when I run my App on one monitor it is OK but when I run it on the other monitor ( by dragging the window across ) the sprites ( and the rest of the App ) are off the window. The window is the correct size but the sprites etc. do not adjust to fit the window.

I have tried switching to just one monitor ( no extended monitors ) and tried various combinations of SetVirtualResolution, SetWindowSize, MaximizeWindow, GetDeviceWidth and Height etc. etc. but as it is a bit of trial and error testing period that takes up time, I wondered if anyone out there knows how to fill the main window that the app starts up in at startup.

Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visionary
Fuzzy Visions

The author of this post has marked a post as an answer.

Go to answer

Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 15th May 2020 04:21 Edited at: 15th May 2020 04:22
Try
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th May 2020 06:48
If AppGameKit decides that the window is too big it will just resize it.
Creative Magic Man
11
Years of Service
User Offline
Joined: 14th Nov 2012
Location: Frinton On Sea, Essex, UK
Posted: 16th May 2020 13:32
This post has been marked by the post author as the answer.
Thanks.

I was trying to be too clever I think and get the device width within the program to detect the monitor change instead of just setting the virtual resolution only once at the startup and letting AppGameKit work out the size of the window if the user drags the window across to another monitor.

My sprites are a little distorted still, but I am getting there!
Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visionary
Fuzzy Visions

Login to post a reply

Server time is: 2024-03-28 12:19:16
Your offset time is: 2024-03-28 12:19:16