screen.h (canvastype): Added CANVAS_INVALID as a new enumerated value (-1).

gl_draw.c (GL_Set2D): Use CANVAS_INVALID instead of -1.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@295 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-08-24 09:20:19 +00:00
parent 6829940b87
commit a7103e2d39
2 changed files with 2 additions and 1 deletions

View File

@ -858,7 +858,7 @@ GL_Set2D -- johnfitz -- rewritten
*/
void GL_Set2D (void)
{
currentcanvas = -1;
currentcanvas = CANVAS_INVALID;
GL_SetCanvas (CANVAS_DEFAULT);
glDisable (GL_DEPTH_TEST);

View File

@ -69,6 +69,7 @@ typedef enum {
CANVAS_BOTTOMLEFT,
CANVAS_BOTTOMRIGHT,
CANVAS_TOPRIGHT,
CANVAS_INVALID = -1
} canvastype;
extern cvar_t scr_menuscale;
extern cvar_t scr_sbarscale;