]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/display.h
Exception changes
[libs/gui.git] / source / gbase / display.h
index a827f50f11b1291eabca029380c3f901d73dda50..662e73fa67e6dc8742a49fec2994dbdb7caf89b0 100644 (file)
@@ -1,15 +1,9 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GBASE_DISPLAY_H_
 #define MSP_GBASE_DISPLAY_H_
 
 #include <list>
 #include <map>
+#include <stdexcept>
 #include <string>
 
 namespace Msp {
@@ -27,6 +21,15 @@ struct VideoMode
        VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
 };
 
+
+class unsupported_video_mode: public std::runtime_error
+{
+public:
+       unsupported_video_mode(const VideoMode &);
+       virtual ~unsupported_video_mode() throw () { }
+};
+
+
 class Display
 {
 public:
@@ -38,7 +41,7 @@ private:
        Private *priv;
 
 public:
-       Display(const std::string &disp_name=std::string());
+       Display(const std::string &disp_name = std::string());
        ~Display();
 
        const Private &get_private() const { return *priv; }