Skip to content

Commit

Permalink
Fix raspi build (Automattic#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3r authored and zbjornson committed May 9, 2019
1 parent 7b36efa commit 81cf69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CanvasRenderingContext2d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@ NAN_METHOD(Context2d::DrawImage) {
decompose_matrix(matrix, transforms);
// extract the scale value from the current transform so that we know how many pixels we
// need for our extra canvas in the drawImage operation.
double current_scale_x = abs(transforms[1]);
double current_scale_y = abs(transforms[2]);
double current_scale_x = std::abs(transforms[1]);
double current_scale_y = std::abs(transforms[2]);
double extra_dx = 0;
double extra_dy = 0;
double fx = dw / sw * current_scale_x; // transforms[1] is scale on X
Expand Down

0 comments on commit 81cf69b

Please sign in to comment.