mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-12 07:32:20 +00:00
sw_engine: float casted on the unsigned int type
uint32_t -> int32_t
This commit is contained in:
parent
0f87685c85
commit
c44d667f10
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ bool imagePrepare(SwImage* image, const Matrix* transform, const SwBBox& clipReg
|
|||
|
||||
//Fast track: Non-transformed image but just shifted.
|
||||
if (image->direct) {
|
||||
image->ox = -static_cast<uint32_t>(round(transform->e13));
|
||||
image->oy = -static_cast<uint32_t>(round(transform->e23));
|
||||
image->ox = -static_cast<int32_t>(round(transform->e13));
|
||||
image->oy = -static_cast<int32_t>(round(transform->e23));
|
||||
//Figure out the scale factor by transform matrix
|
||||
} else {
|
||||
auto scaleX = sqrtf((transform->e11 * transform->e11) + (transform->e21 * transform->e21));
|
||||
|
|
Loading…
Add table
Reference in a new issue