summaryrefslogtreecommitdiff
path: root/src/m_config.c
diff options
context:
space:
mode:
authorSimon Howard2014-04-12 17:14:37 -0400
committerSimon Howard2014-04-12 17:14:37 -0400
commitd70c830b4d089e749ff5aa84a3d479be7911995a (patch)
tree7b1bd1a21bf3dc425063097d367e842d8caeaf50 /src/m_config.c
parent67fae2be49cb9203de5b952ab8b17a37db800c15 (diff)
downloadchocolate-doom-d70c830b4d089e749ff5aa84a3d479be7911995a.tar.gz
chocolate-doom-d70c830b4d089e749ff5aa84a3d479be7911995a.tar.bz2
chocolate-doom-d70c830b4d089e749ff5aa84a3d479be7911995a.zip
video: Change default for screen_bpp to 0.
Some machines don't work well with 8-bit screen depths any more. It's better to default to just using the machine's native color depth instead. Change the default to 0 (for SDL_SetVideoMode this means "use native color depth"), auto-adjust to native color depth on startup if screen_bpp=0 (so that debug messages at least make sense) and document for the config file value that a value of zero means "use native".
Diffstat (limited to 'src/m_config.c')
-rw-r--r--src/m_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/m_config.c b/src/m_config.c
index 8bfbde9f..02817041 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -747,6 +747,8 @@ static default_t extra_defaults_list[] =
//!
// Color depth of the screen, in bits.
+ // If this is set to zero, the color depth will be automatically set
+ // on startup to the machine's default/native color depth.
//
CONFIG_VARIABLE_INT(screen_bpp),