From 676b92187bb0f5544f6988c3958f341cb4a36c8e Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 11 Oct 2021 02:48:31 -0400 Subject: [PATCH] [tests] tighten up movement in BitmapSmoothMove #1682 --- src/tests/bitmap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/bitmap.cpp b/src/tests/bitmap.cpp index d5b5641c7..fd09fa61a 100644 --- a/src/tests/bitmap.cpp +++ b/src/tests/bitmap.cpp @@ -679,9 +679,9 @@ TEST_CASE("Bitmaps") { vopts.flags = NCVISUAL_OPTION_NODEGRADE; auto n = ncvisual_render(nc_, ncv, &vopts); REQUIRE(nullptr != n); - auto xpx = ncplane_dim_x(n_) * nc_->tcache.cellpixx; - auto ypx = ncplane_dim_y(n_) * nc_->tcache.cellpixy; - double xyrat = (double)xpx / ypx; + auto xpx = (ncplane_dim_x(n_) - 2) * nc_->tcache.cellpixx; + auto ypx = (ncplane_dim_y(n_) - 2) * nc_->tcache.cellpixy; + double xyrat = (double)ypx / xpx; for(unsigned xat = 0 ; xat < xpx ; ++xat){ vopts.x = xat / nc_->tcache.cellpixx; vopts.pxoffx = xat % nc_->tcache.cellpixx;