Skip to content

Commit a4fa421

Browse files
scgbckbonedoc-hex
authored andcommitted
mk4: decrease CHAR_PER_W from 19 to 18 (one char missing in view)
1 parent 2f35c0d commit a4fa421

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared/ux.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
# How many characters can we fit on each line? How many lines?
3030
# (using FontSmall) .. except it's an approximation since variable-width font.
3131
# - even 19 could work sometimes, but not when line is completely full
32+
# - 18 will always fit, even if line full, one char can be only half visible
3233
# - really should look at rendered-width of text
33-
CH_PER_W = 19
34+
CH_PER_W = 18
3435
STORY_H = 5
3536
from ux_mk4 import PressRelease, ux_enter_number, ux_input_text, ux_show_pin
3637
from ux_mk4 import ux_login_countdown, ux_dice_rolling, ux_render_words

0 commit comments

Comments
 (0)