]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.cpp
Use lambdas for comparison functions
[libs/gui.git] / source / graphics / videomode.cpp
index a07112a1eb5be6c2ff68dd8ab183e4eb11760927..d9c20794da611a492bf1e588d599211f84213604 100644 (file)
@@ -1,5 +1,5 @@
-#include <msp/strings/format.h>
 #include "videomode.h"
+#include <msp/strings/format.h>
 
 namespace Msp {
 namespace Graphics {
@@ -8,5 +8,11 @@ unsupported_video_mode::unsupported_video_mode(const VideoMode &mode):
        runtime_error(format("%dx%d", mode.width, mode.height))
 { }
 
+
+VideoMode::VideoMode(unsigned w, unsigned h):
+       width(w),
+       height(h)
+{ }
+
 } // namespace Graphics
 } // namespace Msp