]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.cpp
Extend the video mode API to support multiple monitors
[libs/gui.git] / source / graphics / videomode.cpp
1 #include <msp/strings/format.h>
2 #include "videomode.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():
13         monitor(0),
14         width(0),
15         height(0),
16         rate(0)
17 { }
18
19 VideoMode::VideoMode(unsigned w, unsigned h):
20         monitor(0),
21         width(w),
22         height(h),
23         rate(0)
24 { }
25
26 } // namespace Graphics
27 } // namespace Msp