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 / problems when alt tabbing a game

Author
Message
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 12th Sep 2005 00:09
I'm not sure if its my setup or what, but does everyone get smeared and screwed images when alt tabbing a game and coming back to it?

I'm a total noobtard, so sorry.

I'm on Media Center edition SP1

If it's everyone, how do I fix it in the code, or can i?

Thanks
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Sep 2005 00:52
Yes - it's normal in DBC for the DirectX screen to be corrupted when you do that. You aren't meant to do it really.

TDK_Man

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 13th Sep 2005 17:46 Edited at: 13th Sep 2005 17:46
Yah, thats really annoying isn't it. I think you have to cls when you do that. I think I remember that working for me. ??

------------------------
Visit my website of games
http://www.dabip.co.nr!
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 13th Sep 2005 18:33 Edited at: 13th Sep 2005 18:37
use screen invalid() to check for it

Best of my knowledge, you have to reload everything which is a joke sometimes - especially if it took like 5 mins to load first time...

and of course disable systemkeys does absolutely nothing if you're running an NT-based windows (and who isn't running windows 2000 or newer these days?)

...maybe one day I'll finish a project
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 13th Sep 2005 20:25
I can normally get away with just 'cls'ing, and continuing from where I left off.

Simply, an 'If Screen Invalid()=1 Then Cls' inside the main loop should be all that you need...

Part of the 'Emergency Response Noob Shooting Team' :: Feel free to add me to MSN, but don't expect any big favours [unless you like VB6]. ... Do what I do, not what I say.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 14th Sep 2005 12:09
hmm interesting, mine CLS' once every loop, regardless of a screen invalid, once it's been switched out, and then back, I have to delete and reload all my objects/textures to fix

...maybe one day I'll finish a project

Login to post a reply

Server time is: 2025-05-22 08:57:10
Your offset time is: 2025-05-22 08:57:10