mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 00:25:38 +00:00
Fix grid padding being 2 times smaller than it should be
This commit is contained in:
parent
27670e48d6
commit
8763adedb1
|
@ -175,7 +175,7 @@ void GridTileComponent::resize()
|
||||||
{
|
{
|
||||||
const GridTileProperties& currentProperties = getCurrentProperties();
|
const GridTileProperties& currentProperties = getCurrentProperties();
|
||||||
|
|
||||||
mImage->setMaxSize(currentProperties.mSize - currentProperties.mPadding);
|
mImage->setMaxSize(currentProperties.mSize - currentProperties.mPadding * 2);
|
||||||
mBackground.setCornerSize(currentProperties.mBackgroundCornerSize);
|
mBackground.setCornerSize(currentProperties.mBackgroundCornerSize);
|
||||||
mBackground.fitTo(currentProperties.mSize - mBackground.getCornerSize() * 2);
|
mBackground.fitTo(currentProperties.mSize - mBackground.getCornerSize() * 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue