From 38e1dc6a7aefd4a5dd0a2455a27e89dccd44a9d9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 23 Apr 2019 10:42:06 +0200 Subject: [PATCH] rogueviz:: fixed the type in perturb to color_t --- rogueviz.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rogueviz.cpp b/rogueviz.cpp index 9d726420..aa50fb6c 100644 --- a/rogueviz.cpp +++ b/rogueviz.cpp @@ -73,10 +73,10 @@ colorpair parse(const string& s) { } int nh = 0; -int hues[256*6]; +color_t hues[256*6]; void buildhue() { - unsigned mh = 193; + color_t mh = 193; for(unsigned y=0; y<=mh; y++) hues[nh++] = (int) (0xFF + 0x1000000*mh + (unsigned) 0x10000 * y); for(unsigned y=0; y<=mh; y++) @@ -91,7 +91,7 @@ void buildhue() { hues[nh++] = (int) (0xFF + 0x1000100*mh - 0x100 * y); } -int perturb(int c) { +color_t perturb(color_t c) { if(nh == 0) buildhue(); int hueid = -1; for(int t=0; t