]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/monitor.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / monitor.h
index 35abce19d5e511ead6cb05fe40a7c6935b6ff5e8..b74cea898a6398390cce90d21ad20bcea06fb000 100644 (file)
@@ -10,18 +10,21 @@ namespace Graphics {
 
 struct Monitor
 {
-       unsigned index;
+       struct Settings
+       {
+               const VideoMode *mode = nullptr;
+               VideoRotation rotation = ROTATE_NORMAL;
+               int x = 0;
+               int y = 0;
+       };
+
+       unsigned index = 0;
        std::string name;
        std::list<const VideoMode *> video_modes;
-       const VideoMode *desktop_mode;
-       VideoRotation desktop_rotation;
-       const VideoMode *current_mode;
-       VideoRotation current_rotation;
-       int x, y;
-       const Monitor *next_left;
-       const Monitor *next_right;
-
-       Monitor();
+       Settings desktop_settings;
+       Settings current_settings;
+       const Monitor *next_left = nullptr;
+       const Monitor *next_right = nullptr;
 };
 
 } // namespace Graphics