mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
profile: fix typo in color generating code
HSL and HSV are different things... Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
32d042e73e
commit
02ea3d59f6
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ static std::array<int, num_tissues> calcLinesPerTissue(int size)
|
|||
static inline QRgb hsv2rgb(double h, double s, double v)
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) // they are just trolling us with these changes
|
||||
QColor c = QColor::fromHslF((float)h, (float)s, (float)v);
|
||||
QColor c = QColor::fromHsvF((float)h, (float)s, (float)v);
|
||||
#else
|
||||
QColor c = QColor::fromHslF(h, s, v);
|
||||
QColor c = QColor::fromHsvF(h, s, v);
|
||||
#endif
|
||||
return c.rgba();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue