From 9a21921abe42072a2d710d31e568b09565c35de0 Mon Sep 17 00:00:00 2001 From: danij Date: Sun, 17 Nov 2013 07:16:25 +0000 Subject: [PATCH] Server: Fix build (no qtgui, thus no QColor) --- doomsday/client/include/resource/colorpalette.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doomsday/client/include/resource/colorpalette.h b/doomsday/client/include/resource/colorpalette.h index f1d545727b..181f5c41c0 100644 --- a/doomsday/client/include/resource/colorpalette.h +++ b/doomsday/client/include/resource/colorpalette.h @@ -25,7 +25,9 @@ #include #include #include +#ifdef __CLIENT__ #include +#endif #include /** @@ -118,6 +120,7 @@ class ColorPalette */ de::Vector3f colorf(int colorIndex) const; +#ifdef __CLIENT__ /** * Same as @ref color() except the color is returned as a QColor instance. */ @@ -125,6 +128,7 @@ class ColorPalette de::Vector3ub rgb = color(colorIndex); return QColor(rgb.x, rgb.y, rgb.z, alpha); } +#endif /** * Given an R8G8B8 color triplet return the closet matching color index.