]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelformat.cpp
Rework exceptions
[libs/gl.git] / source / pixelformat.cpp
index 91f102261cf63006d933b017427656adc8cb867d..8f742d83c38fcd012e0a46068eb96a0a350820aa 100644 (file)
@@ -1,11 +1,4 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "except.h"
+#include <msp/strings/format.h>
 #include "pixelformat.h"
 
 using namespace std;
@@ -61,7 +54,7 @@ PixelFormat pixelformat_from_graphics(Graphics::PixelFormat pf)
        case Graphics::RGBA: return RGBA;
        case Graphics::BGR: return BGR;
        case Graphics::BGRA: return BGRA;
-       default: throw InvalidParameterValue("Unknown Graphics::PixelFormat");
+       default: throw invalid_argument("pixelformat_from_graphics");
        }
 }