mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Small simplification in ImageComponent.
This commit is contained in:
parent
3c567c07d8
commit
89aefab54c
|
@ -123,9 +123,9 @@ void ImageComponent::resize()
|
||||||
|
|
||||||
// Make sure sub-pixel values are not rounded to zero.
|
// Make sure sub-pixel values are not rounded to zero.
|
||||||
if (mSize.x < 1.0f)
|
if (mSize.x < 1.0f)
|
||||||
mSize.x = ceilf(mSize.x);
|
mSize.x = 1.0f;
|
||||||
if (mSize.y < 1.0f)
|
if (mSize.y < 1.0f)
|
||||||
mSize.y = ceilf(mSize.y);
|
mSize.y = 1.0f;
|
||||||
|
|
||||||
mTexture->rasterizeAt(mSize.x, mSize.y);
|
mTexture->rasterizeAt(mSize.x, mSize.y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue