rotation fix
This commit is contained in:
parent
8489c57d40
commit
dcbe05a75d
1 changed files with 2 additions and 2 deletions
|
|
@ -241,13 +241,13 @@ export namespace Crafter {
|
||||||
} else if constexpr(Rotating) {
|
} else if constexpr(Rotating) {
|
||||||
if(oldScale.width != scaled.width || oldScale.height != scaled.height) {
|
if(oldScale.width != scaled.width || oldScale.height != scaled.height) {
|
||||||
buffer.resize(scaled.width * scaled.height);
|
buffer.resize(scaled.width * scaled.height);
|
||||||
ScaleNearestNeighbor();
|
ScaleRotating();
|
||||||
window.AddDirtyRect(oldScale);
|
window.AddDirtyRect(oldScale);
|
||||||
window.AddDirtyRect(scaled);
|
window.AddDirtyRect(scaled);
|
||||||
} else if(oldScale.x != scaled.x || oldScale.y != scaled.y) {
|
} else if(oldScale.x != scaled.x || oldScale.y != scaled.y) {
|
||||||
window.AddDirtyRect(oldScale);
|
window.AddDirtyRect(oldScale);
|
||||||
window.AddDirtyRect(scaled);
|
window.AddDirtyRect(scaled);
|
||||||
if(ScalingBase<true, Owning>::bufferUpdated) {
|
if(ScalingBase<true, Owning>::bufferUpdated || RotatingBase<true>::rotationUpdated) {
|
||||||
ScaleRotating();
|
ScaleRotating();
|
||||||
ScalingBase<true, Owning>::bufferUpdated = false;
|
ScalingBase<true, Owning>::bufferUpdated = false;
|
||||||
RotatingBase<true>::rotationUpdated = false;
|
RotatingBase<true>::rotationUpdated = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue