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 / resizewindow

Author
Message
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 28th Apr 2019 07:44
ive tried to draw a box on the screen using drawbox(width-200,0,width,height) were width =getwindowwidth() and height=getwindowheight()

ive tried running them inside the main loop so they constantly report the windows size encase it is resized. i tried setting the virtual resolution of the window and setting width and height to virtualwidth and virtualheight. but it always seems to messed up when the window is resized. Is there a way to resize a window and have it still work correctly?
A child's dream never dies.





smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 28th Apr 2019 21:52
bump
A child's dream never dies.





blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 29th Apr 2019 04:34
try setting setwindowsize() AND setvirtualsize(). Make sure they have the same values
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 3rd May 2019 02:14
thank you blink woked perfectly
A child's dream never dies.





Login to post a reply

Server time is: 2024-04-25 10:37:44
Your offset time is: 2024-04-25 10:37:44