comparison layer/ColourMapper.cpp @ 911:6e2a034f7117 cxx11

Type correction
author Chris Cannam
date Tue, 10 Mar 2015 17:40:31 +0000
parents e0f08e108064
children 2a85ab180d08
comparison
equal deleted inserted replaced
910:b48db6f1a7d2 911:6e2a034f7117
76 if (norm > 1.0) norm = 1.0; 76 if (norm > 1.0) norm = 1.0;
77 77
78 double h = 0.0, s = 0.0, v = 0.0, r = 0.0, g = 0.0, b = 0.0; 78 double h = 0.0, s = 0.0, v = 0.0, r = 0.0, g = 0.0, b = 0.0;
79 bool hsv = true; 79 bool hsv = true;
80 80
81 // double red = 0.0, green = 0.3333; 81 double blue = 0.6666, pieslice = 0.3333;
82 double blue = 0.6666f, pieslice = 0.3333;
83 82
84 if (m_map >= getColourMapCount()) return Qt::black; 83 if (m_map >= getColourMapCount()) return Qt::black;
85 StandardMap map = (StandardMap)m_map; 84 StandardMap map = (StandardMap)m_map;
86 85
87 switch (map) { 86 switch (map) {