mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Fixed a general ImageComponent scaling issue caused by incorrect rounding.
This commit is contained in:
parent
975ff0eb69
commit
1166539466
|
@ -130,9 +130,9 @@ void ImageComponent::resize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mSize.x = floorf(mSize.x);
|
mSize.x = ceilf(mSize.x);
|
||||||
mSize.y = floorf(mSize.y);
|
mSize.y = ceilf(mSize.y);
|
||||||
// mSize.y() should already be rounded.
|
|
||||||
mTexture->rasterizeAt(static_cast<size_t>(mSize.x), static_cast<size_t>(mSize.y));
|
mTexture->rasterizeAt(static_cast<size_t>(mSize.x), static_cast<size_t>(mSize.y));
|
||||||
|
|
||||||
onSizeChanged();
|
onSizeChanged();
|
||||||
|
|
Loading…
Reference in a new issue