]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_shared.c
Rename qboolean to qbool
[xonotic/darkplaces.git] / vid_shared.c
index 661fb0a697ad68949225eba370c5b2eaee14ed96..177f99ff23737937492940c199ebad03e2043026 100644 (file)
@@ -56,7 +56,7 @@ xinput_keystroke_t;
 DWORD (WINAPI *qXInputGetState)(DWORD index, xinput_state_t *state);
 DWORD (WINAPI *qXInputGetKeystroke)(DWORD index, DWORD reserved, xinput_keystroke_t *keystroke);
 
-qboolean vid_xinputinitialized = false;
+qbool vid_xinputinitialized = false;
 int vid_xinputindex = -1;
 #endif
 
@@ -64,17 +64,17 @@ int vid_xinputindex = -1;
 viddef_t vid;
 
 // AK FIXME -> input_dest
-qboolean in_client_mouse = true;
+qbool in_client_mouse = true;
 
 // AK where should it be placed ?
 float in_mouse_x, in_mouse_y;
 float in_windowmouse_x, in_windowmouse_y;
 
 // LadyHavoc: if window is hidden, don't update screen
-qboolean vid_hidden = true;
+qbool vid_hidden = true;
 // LadyHavoc: if window is not the active window, don't hog as much CPU time,
 // let go of the mouse, turn off sound, and restore system gamma ramps...
-qboolean vid_activewindow = true;
+qbool vid_activewindow = true;
 
 vid_joystate_t vid_joystate;
 
@@ -635,7 +635,7 @@ static glfunction_t openglfuncs[] =
 };
 #endif
 
-qboolean GL_CheckExtension(const char *name, const char *disableparm, int silent)
+qbool GL_CheckExtension(const char *name, const char *disableparm, int silent)
 {
        int failed = false;
        const glfunction_t *func;
@@ -692,7 +692,7 @@ void GL_Setup(void)
        int j;
        GLint numextensions = 0;
        const glfunction_t *func;
-       qboolean missingrequiredfuncs = false;
+       qbool missingrequiredfuncs = false;
        static char missingfuncs[16384];
 
 #ifndef USE_GLES2
@@ -845,7 +845,7 @@ float VID_JoyState_GetAxis(const vid_joystate_t *joystate, int axis, float fsens
        return value * fsensitivity;
 }
 
-qboolean VID_JoyBlockEmulatedKeys(int keycode)
+qbool VID_JoyBlockEmulatedKeys(int keycode)
 {
        int j;
        vid_joystate_t joystate;
@@ -927,7 +927,7 @@ void VID_Shared_BuildJoyState_Finish(vid_joystate_t *joystate)
        joystate->button[35] = r < 0.0f;
 }
 
-static void VID_KeyEventForButton(qboolean oldbutton, qboolean newbutton, int key, double *timer)
+static void VID_KeyEventForButton(qbool oldbutton, qbool newbutton, int key, double *timer)
 {
        if (oldbutton)
        {
@@ -1097,7 +1097,7 @@ void VID_ApplyGammaToColor(const float *rgb, float *out)
 }
 
 unsigned int vid_gammatables_serial = 0; // so other subsystems can poll if gamma parameters have changed
-qboolean vid_gammatables_trivial = true;
+qbool vid_gammatables_trivial = true;
 void VID_BuildGammaTables(unsigned short *ramps, int rampsize)
 {
        if (cachecolorenable)
@@ -1166,7 +1166,7 @@ void VID_UpdateGamma(void)
 {
        cvar_t *c;
        float f;
-       qboolean gamma_changed = false;
+       qbool gamma_changed = false;
 
 #define BOUNDCVAR(cvar, m1, m2) c = &(cvar);f = bound(m1, c->value, m2);if (c->value != f) Cvar_SetValueQuick(c, f);
        BOUNDCVAR(v_gamma, 0.1, 5);
@@ -1459,8 +1459,8 @@ static void VID_CloseSystems(void)
        Key_ReleaseAll();
 }
 
-qboolean vid_commandlinecheck = true;
-extern qboolean vid_opened;
+qbool vid_commandlinecheck = true;
+extern qbool vid_opened;
 
 void VID_Restart_f(cmd_state_t *cmd)
 {
@@ -1596,7 +1596,7 @@ static int VID_SortModes_Compare(const void *a_, const void *b_)
                return -1;
        return 0;
 }
-size_t VID_SortModes(vid_mode_t *modes, size_t count, qboolean usebpp, qboolean userefreshrate, qboolean useaspect)
+size_t VID_SortModes(vid_mode_t *modes, size_t count, qbool usebpp, qbool userefreshrate, qbool useaspect)
 {
        size_t i;
        if(count == 0)