color toning: properly draw hue and strength gradients for the highlights and shadows sliders

Fixes #4209
This commit is contained in:
Alberto Griggio
2017-12-08 15:54:05 +01:00
parent d668e0d745
commit 729e50ff2e
2 changed files with 13 additions and 12 deletions

View File

@@ -284,6 +284,9 @@ void ThresholdSelector::updateBackBuffer()
cr->set_line_cap(Cairo::LINE_CAP_BUTT);
if (is_sensitive() && coloredBar.canGetColors()) {
if (updatePolicy == RTUP_DYNAMIC) {
coloredBar.setDirty(true);
}
// this will eventually create/update the off-screen Surface for the gradient area only !
coloredBar.setDrawRectangle(hb + hwslider, int(float(h) * 1.5f / 7.f + 0.5f), iw + 1, int(float(h) * 4.f / 7.f + 0.5f));
// that we're displaying here