]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / videomode.h
index 205245c630ff98e43179ecc1f94dac723a5f57bd..c527ed75de9d75b2d42b45a8635f87ee7c854be9 100644 (file)
@@ -27,14 +27,14 @@ enum VideoRotation
 
 struct VideoMode
 {
-       unsigned index;
-       const Monitor *monitor;
-       unsigned width;
-       unsigned height;
-       float rate;
-       VideoRotation rotation;
-
-       VideoMode();
+       unsigned index = 0;
+       const Monitor *monitor = nullptr;
+       unsigned width = 0;
+       unsigned height = 0;
+       float rate = 0.0f;
+       VideoRotation rotation = ROTATE_ANY;
+
+       VideoMode() = default;
        VideoMode(unsigned, unsigned);
 };