Bugfix: Curve's bg and Histogram's bg wasn't cleaned upon refresh

This commit is contained in:
Hombre
2016-10-17 01:31:49 +02:00
parent bb9c184af7
commit 0c78885d25
3 changed files with 26 additions and 17 deletions

View File

@@ -956,7 +956,10 @@ SSEFUNCTION void HistogramArea::updateBackBuffer ()
Cairo::RefPtr<Cairo::Context> cr = Cairo::Context::create(surface);
const Glib::RefPtr<Gtk::StyleContext> style = get_style_context();
style->render_background(cr, 0, 0, surface->get_width(), surface->get_height());
cr->set_source_rgba (0., 0., 0., 0.);
cr->set_operator (Cairo::OPERATOR_CLEAR);
cr->paint ();
cr->set_operator (Cairo::OPERATOR_OVER);
if (valid) {
// For RAW mode use the other hists
@@ -1215,6 +1218,8 @@ bool HistogramArea::on_draw(const ::Cairo::RefPtr< Cairo::Context> &cr)
updateBackBuffer ();
}
Glib::RefPtr<Gtk::StyleContext> style = get_style_context();
style->render_background(cr, winx, winy, winw, winh);
copySurface(cr, NULL);
return true;