]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid.h
changed VID_InitMode to take a viddef_mode_t structure which contains
[xonotic/darkplaces.git] / vid.h
diff --git a/vid.h b/vid.h
index ff9cddc8b78eeee6441be7f97d85c13a99768613..1b991403484e81281d2789a8d2ff0da8f0024ebb 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -26,16 +26,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 extern int cl_available;
 
+typedef struct viddef_mode_s
+{
+       int width;
+       int height;
+       int bitsperpixel;
+       qboolean fullscreen;
+       float refreshrate;
+       qboolean userefreshrate;
+       qboolean stereobuffer;
+       int samples;
+}
+viddef_mode_t;
+
 typedef struct viddef_s
 {
        // these are set by VID_Mode
+       viddef_mode_t mode;
        int width;
        int height;
        int bitsperpixel;
-       int fullscreen;
+       qboolean fullscreen;
        int refreshrate;
        qboolean userefreshrate;
-       int stereobuffer;
+       qboolean stereobuffer;
        int samples;
 } viddef_t;
 
@@ -127,7 +141,7 @@ int VID_SetMode (int modenum);
 // sets the mode; only used by the Quake engine for resetting to mode 0 (the
 // base mode) on memory allocation failures
 
-int VID_InitMode(int fullscreen, int *width, int *height, int bpp, int refreshrate, int stereobuffer, int samples);
+qboolean VID_InitMode(viddef_mode_t *mode);
 // allocates and opens an appropriate OpenGL context (and its window)