X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fwaves_fastmeter.cc;h=113597ecb575951267863004145718828e0a4696;hb=c8c6bca6587450ff64303dbc994a4cd28d6ce7aa;hp=b57c63fe986082daa810d75cd618c637f4fad58b;hpb=8c4b89935234906842010e24eacdb3dff0266624;p=ardour.git diff --git a/libs/gtkmm2ext/waves_fastmeter.cc b/libs/gtkmm2ext/waves_fastmeter.cc index b57c63fe98..113597ecb5 100644 --- a/libs/gtkmm2ext/waves_fastmeter.cc +++ b/libs/gtkmm2ext/waves_fastmeter.cc @@ -569,6 +569,8 @@ void FastMeter::vertical_expose (cairo_t* cr, cairo_rectangle_t* area) { gint top_of_meter; + // GdkRectangle background; + // GdkRectangle eventarea; //cairo_set_source_rgb (cr, 0, 0, 0); // black //rounded_rectangle (cr, 0, 0, pixwidth + 2, pixheight + 2, 2); @@ -582,15 +584,15 @@ FastMeter::vertical_expose (cairo_t* cr, cairo_rectangle_t* area) pixrect.height = top_of_meter; pixrect.y = pixheight - top_of_meter; - background.x = 0; - background.y = 0; - background.width = pixrect.width; - background.height = pixheight - top_of_meter; + // background.x = 0; + // background.y = 0; + // background.width = pixrect.width; + // background.height = pixheight - top_of_meter; - eventarea.x = area->x; - eventarea.y = area->y; - eventarea.width = area->width; - eventarea.height = area->height; + // eventarea.x = area->x; + // eventarea.y = area->y; + // eventarea.width = area->width; + // eventarea.height = area->height; // Switching to CAIRO we would like to draw on the container's bkg. // if (gdk_rectangle_intersect (&background, &eventarea, &intersection)) { @@ -602,7 +604,7 @@ FastMeter::vertical_expose (cairo_t* cr, cairo_rectangle_t* area) // MEMO: Normaly MATURE OS clips so called invalidated rects itself making APP free of // heavy operations which OS does with graphic HW - // NOTE FROM PAUL: GTK does clip already. The invalidated rect isn't the only area + // NOTE FROM PAUL: GTK does clip already. The invalidated rect isn't the only area // we want to clip to however, which is why this object/class is called FastMeter. // I have left stuff commented out as I found it when I merged from Ardour in August 2014, // but this commenting and the previous MEMO comment represent a misunderstanding