fix for 'green' canvas redraws: cairo expects x,y,w,h not x,y,x+,y+

This commit is contained in:
Ben Loftis 2024-11-23 08:43:37 -06:00
parent e701bee270
commit 23ba0f8338

View file

@ -1067,7 +1067,7 @@ GtkCanvas::on_expose_event (GdkEventExpose* ev)
draw_context->set_identity_matrix(); //reset the cairo matrix, just in case someone left it transformed after drawing ( cough )
/* draw background color */
draw_context->rectangle (rects[n].x, rects[n].y, rects[n].x + rects[n].width, rects[n].y + rects[n].height);
draw_context->rectangle (rects[n].x, rects[n].y, rects[n].width, rects[n].height);
Gtkmm2ext::set_source_rgba (draw_context, _bg_color);
draw_context->fill ();