Skip to content

Commit

Permalink
Fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Sep 2, 2024
1 parent 2f99023 commit 45ff81e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PowerEditor/src/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,11 @@ struct HLSColour
void loadFromRGB(COLORREF rgb) { ColorRGBToHLS(rgb, &_hue, &_lightness, &_saturation); }
COLORREF toRGB() const { return ColorHLSToRGB(_hue, _lightness, _saturation); }

COLORREF toRGB4DarkModWithTuning(int lightnessMore, int saturationLess) const { return ColorHLSToRGB(_hue, _lightness + lightnessMore, _saturation - saturationLess); }
COLORREF toRGB4DarkModWithTuning(int lightnessMore, int saturationLess) const {
return ColorHLSToRGB(_hue,
static_cast<WORD>(static_cast<int>(_lightness) + lightnessMore),
static_cast<WORD>(static_cast<int>(_saturation) - saturationLess));
}
COLORREF toRGB4DarkMod() const { return toRGB4DarkModWithTuning(50, 20); }
};

Expand Down

0 comments on commit 45ff81e

Please sign in to comment.