mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 12:35:44 +00:00
Reverted a rounding change in ComponentGrid as it caused unforeseen issues
This commit is contained in:
parent
c0ec753dc7
commit
8a42b01165
|
@ -60,7 +60,7 @@ float ComponentGrid::getRowHeight(int row)
|
||||||
assert(row >= 0 && row < mGridSize.y);
|
assert(row >= 0 && row < mGridSize.y);
|
||||||
|
|
||||||
if (mRowHeights[row] != 0)
|
if (mRowHeights[row] != 0)
|
||||||
return std::round(mRowHeights[row] * mSize.y);
|
return mRowHeights[row] * mSize.y;
|
||||||
|
|
||||||
// Calculate automatic height.
|
// Calculate automatic height.
|
||||||
float freeHeightPerc {1.0f};
|
float freeHeightPerc {1.0f};
|
||||||
|
@ -71,7 +71,7 @@ float ComponentGrid::getRowHeight(int row)
|
||||||
++between;
|
++between;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::round((freeHeightPerc * mSize.y) / static_cast<float>(between));
|
return (freeHeightPerc * mSize.y) / static_cast<float>(between);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComponentGrid::setColWidthPerc(int col, float width, bool update)
|
void ComponentGrid::setColWidthPerc(int col, float width, bool update)
|
||||||
|
|
Loading…
Reference in a new issue