From dc6d2bb078cd93d428b6f56223941dd3e1efd84a Mon Sep 17 00:00:00 2001 From: BeniS Date: Mon, 3 Dec 2012 16:47:21 +1300 Subject: [PATCH] 8bit color shouldn't be higher than 216, by mistake. --- src/framework/util/color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/util/color.h b/src/framework/util/color.h index 263182fd..7e5933d0 100644 --- a/src/framework/util/color.h +++ b/src/framework/util/color.h @@ -71,7 +71,7 @@ public: bool operator!=(const Color& other) const { return other.rgba() != rgba(); } static Color from8bit(int color) { - if(color >= 256 || color <= 0) + if(color >= 216 || color <= 0) return Color(0, 0, 0); int r = int(color / 36) % 6 * 51;