1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 20:37:40 +00:00

fixed potential crashes when setting fontsize to a too large value

This commit is contained in:
Zeno Rogue
2021-02-06 01:39:46 +01:00
parent 015f6227fa
commit 317e2637ec
2 changed files with 22 additions and 8 deletions

View File

@@ -518,7 +518,7 @@ EX void drawStats() {
rows = 0;
while((buttonsize = minsize - vid.killreduction)) {
columns = colspace / buttonsize;
rows = rowspace / buttonsize;
rows = rowspace / buttonsize; if(!rows) return;
int coltaken = 0;
for(int z=0; z<4; z++) {
if(z == 2 && !portrait) {