]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.cpp
Initial XRandR support
[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         index(0),
14         monitor(0),
15         width(0),
16         height(0),
17         rate(0)
18 { }
19
20 VideoMode::VideoMode(unsigned w, unsigned h):
21         index(0),
22         monitor(0),
23         width(w),
24         height(h),
25         rate(0)
26 { }
27
28 } // namespace Graphics
29 } // namespace Msp