int w, h;
_layout->get_pixel_size (w, h);
- req->width = std::max (req->width, 50 /*std::max (20, w + PADDING) */);
+ req->width = std::max (req->width, 80 /*std::max (20, w + PADDING) */);
req->height = std::max (req->height, std::max (12, h + PADDING));
}
const float lvl = level ();
int bw = (width - PADDING - PADDING) * lvl;
- cairo_rectangle (cr, width-PADDING-bw, PADDING, bw, height-PADDING);
+ cairo_rectangle (cr, PADDING, PADDING, bw, height-PADDING);
switch (indicator ()) {
case Level_OK:
_dsp_load = load;
char buf[64];
- snprintf (buf, sizeof (buf), "%.1f%%", _dsp_load);
+ snprintf (buf, sizeof (buf), "DSP %.1f%%", _dsp_load);
update (std::string (buf));
}
float
DspLoadIndicator::level () const {
- return _dsp_load / 100.f;
+ return (100.0-_dsp_load) / 100.f;
}
bool