width = std::max ((framecnt_t) 64, width);
Points* points;
-
- double pwidth = width / samples_per_unit;
+
+ /* round here to prevent little visual glitches with sub-pixel placement */
+ double const pwidth = rint (width / samples_per_unit);
uint32_t npoints = std::min (gdk_screen_width(), (int) pwidth);
double h;
width = std::max ((framecnt_t) 64, width);
Points* points;
- double pwidth = width / samples_per_unit;
+
+ /* round here to prevent little visual glitches with sub-pixel placement */
+ double const pwidth = rint (width / samples_per_unit);
uint32_t npoints = std::min (gdk_screen_width(), (int) pwidth);
double h;