properly notify Cairo when drawing a gradient to a ThresholdAdjuster

Candidate fix for #3769
This commit is contained in:
Alberto Griggio 2017-05-05 16:43:08 +02:00
parent b30367947f
commit 8ae641952f

View File

@ -131,6 +131,8 @@ void ColoredBar::updateBackBuffer(Gtk::DrawingArea &drawingArea)
} else {
// ask the ColorProvider to provide colors :) for each pixels
if (colorProvider) {
surface->flush();
unsigned char *surfaceData = surface->get_data();
cr->set_antialias(Cairo::ANTIALIAS_NONE);
@ -202,6 +204,8 @@ void ColoredBar::updateBackBuffer(Gtk::DrawingArea &drawingArea)
break;
}
surface->mark_dirty();
}
}