]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.cpp
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / videomode.cpp
1 #include "videomode.h"
2 #include <msp/strings/format.h>
3
4 namespace Msp {
5 namespace Graphics {
6
7 unsupported_video_mode::unsupported_video_mode(const VideoMode &mode):
8         runtime_error(format("%dx%d", mode.width, mode.height))
9 { }
10
11
12 VideoMode::VideoMode(unsigned w, unsigned h):
13         width(w),
14         height(h)
15 { }
16
17 } // namespace Graphics
18 } // namespace Msp