Skip to content

Commit

Permalink
[tests] tighten up movement in BitmapSmoothMove #1682
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Oct 11, 2021
1 parent 80d968a commit 676b921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 676b921

Please sign in to comment.