mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +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.y = floorf(mSize.y);
|
||||
// mSize.y() should already be rounded.
|
||||
mSize.x = ceilf(mSize.x);
|
||||
mSize.y = ceilf(mSize.y);
|
||||
|
||||
mTexture->rasterizeAt(static_cast<size_t>(mSize.x), static_cast<size_t>(mSize.y));
|
||||
|
||||
onSizeChanged();
|
||||
|
|
Loading…
Reference in a new issue