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 / starting resolution / window size

Author
Message
Novas
16
Years of Service
User Offline
Joined: 23rd Jul 2008
Location:
Posted: 27th Jul 2008 23:23
Hi everybody.
I have a question regarding the resolution...

I need 1024x768 and i do already know how to get Dark GDK to resize the window:



looks good and seems to work as supposed...

but it is really annoying that when i start the game it will open a window in 640x480 which will resize after a few seconds.
in addition it isn't centered or anything afterwards. it just resizes out of the display.

isn't there any way to "do this right"?

thanks for reading (and replying? )
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 28th Jul 2008 01:24 Edited at: 28th Jul 2008 01:25
I've tried to figure out the same thing. As far as I know, the only way to do so is to take the screen resolution and position the window at (( desktopW / 2 ) - ( screenW / 2 ), (( desktopH / 2 ) - ( screenH / 2 )). Of course, you'll have to find a way to obtain the desktop resolution.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 28th Jul 2008 08:30
Try this
Novas
16
Years of Service
User Offline
Joined: 23rd Jul 2008
Location:
Posted: 29th Jul 2008 14:55
thanks for your answers!

do you know any way to have a window with for example 800x600 without having the 640x480 at first?

i'd like to have the first window already at the needed size.
it just looks ugly to switch afterwards

Login to post a reply

Server time is: 2024-09-30 03:33:14
Your offset time is: 2024-09-30 03:33:14