Commit graph

3 commits

Author SHA1 Message Date
Samuli Asmala
5ff379c470
Fix pixel coordinate calculation for rotated displays
Coordinate ranges are from 0 to width-1 (or height-1). This means when calculating the rotation, using `x = this->width - y;` would lead to x of range from `this->width` (when `y=0`) to `1` (when `y=this->width-1`). Thus additional -1 is required to get correct coordinates after rotation and prevent image from clipping.
2019-07-20 11:47:25 +03:00
hnwangkg-ezio
0c77852dae fix 2.9 2019-06-25 15:52:14 +08:00
hnwangkg-ezio
1f82e4a488 2019.06.24 2019-06-24 17:11:43 +08:00