Fix rendering of blank vectorscope

This commit is contained in:
Lawrence Lee
2020-08-09 17:22:23 -07:00
parent 8b3af4c520
commit f7c02af184

View File

@@ -1367,7 +1367,8 @@ void HistogramArea::drawVectorscope(Cairo::RefPtr<Cairo::Context> &cr, int w, in
vect_width * (h - 2 * padding) > vect_height * (w - 2 * padding); vect_width * (h - 2 * padding) > vect_height * (w - 2 * padding);
const float scope_scale = fit_width ? const float scope_scale = fit_width ?
(w - 2 * padding) / vect_width : (h - 2 * padding) / vect_height; (w - 2 * padding) / vect_width : (h - 2 * padding) / vect_height;
const float scope_size = scope_scale * max<float>(vect_width, vect_height); const float scope_size = (vectorscope_scale > 0) ?
scope_scale * max<float>(vect_width, vect_height) : min<float>(w, h) - 2 * padding;
const float o_x = (w - scope_scale * vect_width) / 2; const float o_x = (w - scope_scale * vect_width) / 2;
const float o_y = (h - scope_scale * vect_height) / 2; const float o_y = (h - scope_scale * vect_height) / 2;
const double s = RTScalable::getScale(); const double s = RTScalable::getScale();