2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 17:47:42 +00:00

More portable and reliable rectangle initialization

This commit is contained in:
Jack Andersen
2016-01-02 11:18:15 -10:00
parent 5306e48481
commit 26dffbd99e
2 changed files with 5 additions and 5 deletions

View File

@@ -597,8 +597,8 @@ std::vector<boo::SWindowRect> Table::getCellRects(const boo::SWindowRect& sub) c
{
float nextSplit = (i==m_columns-1) ? 1.0 : splits[i+1];
int x = nextSplit * sub.size[0];
ret.push_back({{sub.location[0] + lastX, sub.location[1]},
{x - lastX, int(ROW_HEIGHT * pf)}});
ret.push_back({sub.location[0] + lastX, sub.location[1],
x - lastX, int(ROW_HEIGHT * pf)});
lastX = x;
}