]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid.h
vid: consolidate mode structures
[xonotic/darkplaces.git] / vid.h
diff --git a/vid.h b/vid.h
index 0f140b09da33192859a6a29f217ee2d546d38c44..e360c712b3210cb4acb1b28590c371041380becf 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -69,14 +69,7 @@ typedef struct viddef_s
 {
        // these are set by VID_Mode
        // used in many locations in the renderer
-       int width;
-       int height;
-       int bitsperpixel;
-       qbool fullscreen;
-       float refreshrate;
-       qbool userefreshrate;
-       qbool stereobuffer;
-       int samples;
+       viddef_mode_t mode; ///< currently active video mode
        qbool stencil;
        qbool sRGB2D; // whether 2D rendering is sRGB corrected (based on sRGBcapable2D)
        qbool sRGB3D; // whether 3D rendering is sRGB corrected (based on sRGBcapable3D)