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 Professional Discussion / Windowed - Windowed Desktop - Windowed Fullscreen

Author
Message
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 10th Apr 2010 18:35
I've tried some searches in the forums with not much luck, and I've tried several combinations of settings with so-so results..

What I want the game to do is be full screen at the player's desktop resolution, or the resolution they choose when I get the options screen finished, and allow them to switch out of the game (Alt-Tab or the Windows Key) to do other things, and switch back.

Here is what I've tried so far..

set window mode 0, 0, 0
Works fine and turns off all window controls and borders.

In the EXE settings:

windowed fullscreen
Works fine for the game, but takes over and wont let you gain control over the mouse to switch to another app, and when/if it does let you switch to another app, your mouse movements and clicks still happen in the game.

windowed desktop
Works fine, but leaves the taskbar on the screen.

windowed
This is probably the one I want, but the lower 30 pixels or so run off the bottom of the screen. Maybe this mode is overcompensating for drawing over the taskbar.

Any suggestions on how to make it so the game image still fits on the screen, but players can press the Windows key, or Alt-Tab to another app and switch back?

Sepnon
16
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 10th Apr 2010 19:48



Quote: "but players can press the Windows key, or Alt-Tab to another app and switch back?"


It's kinda hard, because when you change the resolution (alt tab) all 3d data is lost (btw.. why?) such as objects, sprites, bla bla bla.. you can check if it happened with "Screen invalid()"
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 10th Apr 2010 20:37
Quote: "when you change the resolution (alt tab) all 3d data is lost"


I'm not sure of the specifics behind that, but I believe I read that it involves a reset of the Direct3D Device, and at that point everything that was set to draw in the 3D world is reset.

The only solution I have to avoid that issue is to always set the game to the desktop resolution. (not always a popular option)

I'll play with set window off though.

Sepnon
16
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 11th Apr 2010 01:52 Edited at: 11th Apr 2010 02:26
Quote: " but I believe I read that it involves a reset of the Direct3D Device, and at that point everything that was set to draw in the 3D world is reset."


I'm a newbie on directx, but aren't the vertices stored in arrays? why they reset when the resolution changes?

I dont like playing in windowed mode, the game always slow down a bit. (Except fallout 3, a mystery..)

About using desktop resolution, it's easier to code but you cannot open something else that uses fullscreen, it changes the resolution too.. bang! object does not exist, haha

hey, and what if we store all objects in memblocks? if they dont reset we wont need to reload everything from disk

[is my english understandable? im brazilian ._.]
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 11th Apr 2010 05:24
Your English is quite good actually.

I don't know the specifics. Better minds than mine dreamed it up.

Login to post a reply

Server time is: 2026-07-26 14:30:55
Your offset time is: 2026-07-26 14:30:55