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 / Setting the resolution of the window.

Author
Message
TeNgu
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location:
Posted: 22nd Jul 2008 19:21
Hi,

Heres another wacky question.

I want to have a gamewindow with the resolution of 800x600 instead of 640x480. So I used this line:
dbSetDisplayMode ( 800 , 600 , 32 );

When I run the program it gets larger, sure. But the resolution is still actually only 640x480, everything is just enlarged. How do I get real resolution of 800x600?

Thanks

-Patrik
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 22nd Jul 2008 19:23


You have to change the display mode as well as the size of the window when in windowed mode.


My site, for various stuff that I make.
TeNgu
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location:
Posted: 22nd Jul 2008 19:24
Ah, makes sense when you explain it. Thanks. =)


-Patrik
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 23rd Jul 2008 02:26
Quote: "You have to change the display mode as well as the size of the window when in windowed mode."


I've never had to do more than call dbSetDisplayMode.
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 23rd Jul 2008 05:12
It shouldn't work, technically speaking, though I realize that it does.


My site, for various stuff that I make.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 23rd Jul 2008 05:58
Yeah. I just thought you were saying it wouldn't work without doing both on your machine.

Login to post a reply

Server time is: 2024-11-20 17:35:20
Your offset time is: 2024-11-20 17:35:20