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.

Newcomers DBPro Corner / Change Color Depth in game?? Indi??

Author
Message
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 18th Jul 2003 08:15
hey everybody,

how does a guy go about changing the color depth from 16 to 32 bit or vise versa in a "game options" screen.

I know how to do the mouse code for graphic are selection, but there seems to be something wrong with the command i'm using for the color depth change, see code snippet.

thanx for any help
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 18th Jul 2003 08:18 Edited at: 18th Jul 2003 08:21
opps.. nvm, i dunno

famous last words-
Learn as if youll live forever, and give as if youll die tomorrow.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Jul 2003 10:39
when ever your changing the screen its important to know what media is currently loaded in your gamestate.

Sometimes its important to refresh everything after a resolution change.

I would suspect something along the lines of an image loaded as 16 bit displayed while a res change happens to 32 causes a graphical glitch perhaps.

in my core patrol game i set the resolution before the game starts and use flush video memory just before i load all the game media for the game loop.

If selected_c_button(0)=3
wait 500
set display mode 640,480,32
set window on
set window position 20,20
set window size 640,480
set window title "Core Patrol Demo....Vindowed Mode 32 bit , David Smith (c)2002"
wait 500
endif


I trap it with buttons so it only happens once and i let Direct x breate a bit wither side with wait commands.



if your referring to pro and the project managers setting then Im not sure but I think the project settingone can over ride other settings.

Login to post a reply

Server time is: 2024-09-20 15:30:14
Your offset time is: 2024-09-20 15:30:14