]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.cpp
Expose a lot more information through the Monitor struct
[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         rotation(ROTATE_ANY)
19 { }
20
21 VideoMode::VideoMode(unsigned w, unsigned h):
22         index(0),
23         monitor(0),
24         width(w),
25         height(h),
26         rate(0),
27         rotation(ROTATE_ANY)
28 { }
29
30 } // namespace Graphics
31 } // namespace Msp