Major refactoring but now centering text and sprites works. See Issue #16 for why only those and not anything else yet.
This commit is contained in:
parent
2c22da022f
commit
9e9b9620c9
6 changed files with 47 additions and 92 deletions
|
@ -50,6 +50,7 @@ namespace lel {
|
|||
int cell_height = grid_h / rows;
|
||||
|
||||
for(auto& row : grid) {
|
||||
// BUG: see issue #16
|
||||
size_t columns = row.size();
|
||||
int cell_width = grid_w / columns;
|
||||
assert(cell_width > 0 && "invalid cell width calc");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue