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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user