projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44cbf1a
)
fixed calculating maximum length of string values in setup menu
author
Holger Schemel
<info@artsoft.org>
Tue, 2 Oct 2018 19:10:08 +0000
(21:10 +0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 2 Oct 2018 19:10:08 +0000
(21:10 +0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 127333bcb1408058c3793f57886a78bb8d4e75e7..758b3f67f1036cf977ecb6310784b9e365f3fa13 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-6509,7
+6509,7
@@
static void drawSetupValue(int screen_pos, int setup_info_pos_raw)
}
else if (type & TYPE_STRING)
{
- int max_value_len = (S
CR_FIELDX - 2) * 2
;
+ int max_value_len = (S
XSIZE - 2 * TILEX) / font_width_default
;
xpos = MENU_SCREEN_START_XPOS;