v0.9.4: fixed a camera zoom error with text input

This commit is contained in:
Evan Debenham
2021-07-29 13:20:49 -04:00
parent d03c80cb97
commit 87186c1426
2 changed files with 5 additions and 6 deletions
@@ -38,7 +38,8 @@ public class WndTextInput extends Window {
txtTitle.setPos((width - txtTitle.width()) / 2, 2);
add(txtTitle);
TextInput textBox = new TextInput(Chrome.get(Chrome.Type.TOAST_WHITE), multiLine);
int textSize = (int)PixelScene.uiCamera.zoom * (multiLine ? 6 : 9);
TextInput textBox = new TextInput(Chrome.get(Chrome.Type.TOAST_WHITE), multiLine, textSize);
if (initialValue != null) textBox.setText(initialValue);
textBox.setMaxLength(maxLength);