Navigation Menu

Skip to content

Commit

Permalink
properly notify Cairo when drawing a gradient to a ThresholdAdjuster
Browse files Browse the repository at this point in the history
Candidate fix for #3769
  • Loading branch information
agriggio committed May 5, 2017
1 parent b303679 commit 8ae6419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rtgui/coloredbar.cc
Expand Up @@ -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);
Expand Down Expand Up @@ -202,6 +204,8 @@ void ColoredBar::updateBackBuffer(Gtk::DrawingArea &drawingArea)

break;
}

surface->mark_dirty();
}
}

Expand Down

0 comments on commit 8ae6419

Please sign in to comment.