]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.cpp
Move struct VideoMode to its own header
[libs/gui.git] / source / graphics / videomode.cpp
diff --git a/source/graphics/videomode.cpp b/source/graphics/videomode.cpp
new file mode 100644 (file)
index 0000000..a07112a
--- /dev/null
@@ -0,0 +1,12 @@
+#include <msp/strings/format.h>
+#include "videomode.h"
+
+namespace Msp {
+namespace Graphics {
+
+unsupported_video_mode::unsupported_video_mode(const VideoMode &mode):
+       runtime_error(format("%dx%d", mode.width, mode.height))
+{ }
+
+} // namespace Graphics
+} // namespace Msp