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.

DarkBASIC Discussion / Help with problem - Switching from full screen to window

Author
Message
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 27th Nov 2004 10:40
Hi,

I want to make my game I'm working on to be able to switch from fullscreen to window or either way by pressing the "F4" key.

I been trying to make it happen, but when I switch from one to the other, any images I have won't show up. I can't figure out why. So, I made a little example of my problem and included in the "Attachment".

Please Help

See Ya!

Attachments

Login to view attachments
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 28th Nov 2004 02:28
I've being working other parts of the game, but I still need help on the fullscreen and windowed thing.

Please help!

See Ya!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 29th Nov 2004 23:14
I just need to draw up some more levels, which I can do to day, but I still need help with the window thing.

PLEASE HELP!!!!

See Ya!
JerBil
21
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 30th Nov 2004 04:08 Edited at: 30th Nov 2004 04:09
Here is some code, but I'm using DBPro. Basically, when you change
modes, you must reload graphics. Notice the changes to your code. -JerBil

Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 30th Nov 2004 04:23
I used this:



It worked fine, so thanks!

See Ya!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 11th Dec 2004 12:08
Ok, I've got a new problem. I got it so it switches from full to windowed, but how do I switch resolutions like from 640x480x32 to 1024x768x32, without having to redraw the media. Basically, I want to switch resolutions and have my images fit to the new resolution or something without making them look crappy.

Login to post a reply

Server time is: 2025-05-24 07:47:51
Your offset time is: 2025-05-24 07:47:51