projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9844da8
)
fixed setup option position when using narrow font
author
Holger Schemel
<info@artsoft.org>
Sun, 13 Dec 2020 11:59:47 +0000
(12:59 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 13 Dec 2020 11:59:47 +0000
(12:59 +0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index d9909a2dc61fe30fef84486a6f99410f73c93825..29f4e5379ddbb66d80fdcad63ef6ee50acc55816 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-6761,6
+6761,10
@@
static void drawSetupValue(int screen_pos, int setup_info_pos_raw)
if (startx + font_xoffset < text_startx + text_width + text_font_xoffset)
{
if (startx + font_xoffset < text_startx + text_width + text_font_xoffset)
{
+ // when using narrow font, left-shifting text "auto" not needed
+ if (type & TYPE_YES_NO_AUTO)
+ xpos += 1;
+
xpos += 1;
startx = mSX + xpos * 32;
xpos += 1;
startx = mSX + xpos * 32;