X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpixelformat.cpp;h=8f742d83c38fcd012e0a46068eb96a0a350820aa;hb=2e7f19b895424c3a77940e648639f8df2b395d0f;hp=4744ebbdfbad3a61c209be9085a01e15c8e4b1bc;hpb=97e1aa9b5d2bacd3f1dddf2d1889f2714e36b766;p=libs%2Fgl.git diff --git a/source/pixelformat.cpp b/source/pixelformat.cpp index 4744ebbd..8f742d83 100644 --- a/source/pixelformat.cpp +++ b/source/pixelformat.cpp @@ -1,4 +1,4 @@ -#include "except.h" +#include #include "pixelformat.h" using namespace std; @@ -54,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"); } }