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 / Window Size Problem

Author
Message
Cryptic Dragon
16
Years of Service
User Offline
Joined: 7th Dec 2007
Location:
Posted: 21st Jan 2013 07:05 Edited at: 21st Jan 2013 09:02
When I use the following command...

dbSetDisplayMode ( 1088, 736, 32 );

It shows my window perfectly with all sprites, background, windows border, and windows title bar. (((But))) when I use the following command...

dbSetWindowLayout (0, 0, 1);
dbSetDisplayMode ( 1088, 736, 32 );

The windows border and windows title bar are gone.
THIS IS WHAT I EXPECT AND WANT (((BUT)))

It stretches the sprites and background to the chosen pixel size PLUS the pixels of the windows title bar and windows border. The new resolution WITHOUT the windows title bar and windows border is...

1096, 763

This small stretching causes a distortion and I do NOT want it.

I want my chosen pixel size of 1088, 736 with NO STRETCHING to where the windows title bar and windows border would be. And of course NO windows title bar and NO windows border.

Any ideas how to get this to happen???

You know for a fact that you have reached the edge when you can absolutely see sound!
Cryptic Dragon
16
Years of Service
User Offline
Joined: 7th Dec 2007
Location:
Posted: 22nd Jan 2013 01:34 Edited at: 22nd Jan 2013 01:36
Figured it out myself. The two lines of code are backwards...

dbSetWindowLayout (0, 0, 1);
dbSetDisplayMode ( 1088, 736, 32 );

Where they should be...

dbSetDisplayMode ( 1088, 736, 32 );
dbSetWindowLayout (0, 0, 1);

The display needs set before you remove the windows title bar and windows border.

Thanks anyway forum. Maybe this information will help somebody else in the future.

You know for a fact that you have reached the edge when you can absolutely see sound!

Login to post a reply

Server time is: 2024-11-18 21:42:21
Your offset time is: 2024-11-18 21:42:21