Update E_showMenu_Q3.js

Recheck string wrapping after font change.
This commit is contained in:
storm64 2022-04-20 00:23:00 +02:00 committed by GitHub
parent b01e9d814a
commit 2854fc15b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,10 @@
pad += 16;
}
var l = g.wrapString(keys[idx],r.w-pad);
if (l.length>1) g.setFont("6x15");
if (l.length>1) {
g.setFont("6x15");
l = g.wrapString(keys[idx],r.w-pad);
}
g.setFontAlign(-1,0).drawString(l.join("\n"), r.x+12, r.y+H/2);
},
select : function(idx) {
@ -129,4 +132,4 @@
}
show();
return l;
})
})