Marco "PixelAligned" is wrong for negative

Create issue
Issue #167 resolved
Former user created an issue

Automatic migration. Original reporter: "microkong"

The "PixelAligned" for negative should be: (float)(int)(( x ) - 0.5f)

The float in Image::d_offset may be a negative. So the marco "PixelAligned" in Image::setVertScaling and Image::setHorzScaling will get the wrong result.

Reproducibility: always

Comments (1)

  1. Log in to comment