Skip to content

Commit

Permalink
Added: Command "setcolordepth"
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 13, 2012
1 parent d0a0ffa commit 5461e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doomsday/engine/portable/src/gl_main.c
Expand Up @@ -146,6 +146,7 @@ void GL_Register(void)

// Ccmds
C_CMD_FLAGS("fog", NULL, Fog, CMDF_NO_NULLGAME|CMDF_NO_DEDICATED);
C_CMD_FLAGS("setcolordepth", "i", SetBPP, CMDF_NO_DEDICATED);
C_CMD_FLAGS("setbpp", "i", SetBPP, CMDF_NO_DEDICATED);
C_CMD_FLAGS("setres", "ii", SetRes, CMDF_NO_DEDICATED);
C_CMD_FLAGS("setvidramp", "", UpdateGammaRamp, CMDF_NO_DEDICATED);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/window.cpp
Expand Up @@ -264,7 +264,7 @@ struct ddwindow_s
break;
case DDWA_COLOR_DEPTH_BITS:
colorDepthBits = attribs[i];
if(colorDepthBits < 1 || colorDepthBits > 64) return false; // Illegal value.
if(colorDepthBits < 8 || colorDepthBits > 64) return false; // Illegal value.
break;
default:
// Unknown attribute.
Expand Down

0 comments on commit 5461e78

Please sign in to comment.