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.

Dark GDK / Dynamically Changing Window Size

Author
Message
gwin003
6
Years of Service
User Offline
Joined: 22nd Jun 2012
Location:
Posted: 26th Jun 2012 04:18
I posted this in the DarkGDK.NET forum, but this one seems to be a bit more active, so I\'ll post it here as well. I want to be able to change the window size dynamically. Basically I want the user to have the option of changing the resolutions.

The first issue I was having was the newly re-sized window would be black, not showing any sprites, even though I was reloading the correct new images.

The bigger issue is an AccessViolationException that occurs on DarkGDK.Core.Sync() after the window changes size. Here is the code I am using the change the window size...



Does anyone know how I can dynamically change the window size?
Mr Bigglesworth
11
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 27th Jun 2012 03:51
I can do it fine as long as I reload all my media, although I don't use DarkGDK .NET

Is it possible you are accidently calling "DarkGDK.Display.SetDisplayMode(width, height, 32);" more than once after you change the resolution? (setting the same resoloution more than once)

Login to post a reply

Server time is: 2019-06-16 09:51:26
Your offset time is: 2019-06-16 09:51:26