projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed setup option position when using narrow font
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 41292512d1b1436b7871eb32e14bf32deb674735..29f4e5379ddbb66d80fdcad63ef6ee50acc55816 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-3692,6
+3692,10
@@
static void DrawInfoScreen_Version(void)
DrawTextF(xstart1, ystart, font_head, "Source date");
DrawTextF(xstart2, ystart, font_text, getSourceDateString());
DrawTextF(xstart1, ystart, font_head, "Source date");
DrawTextF(xstart2, ystart, font_text, getSourceDateString());
+ ystart += ystep_line;
+
+ DrawTextF(xstart1, ystart, font_head, "Commit hash");
+ DrawTextF(xstart2, ystart, font_text, getSourceHashString());
ystart += ystep_para;
DrawTextF(xstart1, ystart, font_head, "Library");
ystart += ystep_para;
DrawTextF(xstart1, ystart, font_head, "Library");
@@
-6757,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;
@@
-7543,7
+7551,7
@@
static boolean ConfigureJoystickMapButtonsAndAxes(SDL_Joystick *joystick)
Event event;
int alpha = 200, alpha_step = -1;
int alpha_ticks = 0;
Event event;
int alpha = 200, alpha_step = -1;
int alpha_ticks = 0;
- char mapping[4096], temp[
409
6];
+ char mapping[4096], temp[
25
6];
int font_name = MENU_SETUP_FONT_TITLE;
int font_info = MENU_SETUP_FONT_TEXT;
int spacing_name = menu.line_spacing_setup[SETUP_MODE_INPUT];
int font_name = MENU_SETUP_FONT_TITLE;
int font_info = MENU_SETUP_FONT_TEXT;
int spacing_name = menu.line_spacing_setup[SETUP_MODE_INPUT];