Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/smallcolorselector/kis_small_color_widget.cc
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Line(s) | |||||
259 | void KisSmallColorWidget::slotUpdatePalettes() | 259 | void KisSmallColorWidget::slotUpdatePalettes() | ||
260 | { | 260 | { | ||
261 | updateHuePalette(); | 261 | updateHuePalette(); | ||
262 | updateSVPalette(); | 262 | updateSVPalette(); | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | namespace { | 265 | namespace { | ||
266 | struct FillHPolicy { | 266 | struct FillHPolicy { | ||
267 | static inline void getRGB(qreal hue, float xPortionCoeff, float yPortionCoeff, | 267 | static inline void getRGB(qreal /*hue*/, float xPortionCoeff, float /*yPortionCoeff*/, | ||
268 | int x, int y, float *r, float *g, float *b) { | 268 | int x, int /*y*/, float *r, float *g, float *b) { | ||
269 | 269 | | |||
270 | HSVToRGB(xPortionCoeff * x * 360.0f, 1.0, 1.0, r, g, b); | 270 | HSVToRGB(xPortionCoeff * x * 360.0f, 1.0, 1.0, r, g, b); | ||
271 | } | 271 | } | ||
272 | }; | 272 | }; | ||
273 | 273 | | |||
274 | struct FillSVPolicy { | 274 | struct FillSVPolicy { | ||
275 | static inline void getRGB(qreal hue, float xPortionCoeff, float yPortionCoeff, | 275 | static inline void getRGB(qreal hue, float xPortionCoeff, float yPortionCoeff, | ||
276 | int x, int y, float *r, float *g, float *b) { | 276 | int x, int y, float *r, float *g, float *b) { | ||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |