projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb40276
)
added using left and right spacing on score info page
author
Holger Schemel
<info@artsoft.org>
Thu, 14 Apr 2022 23:19:40 +0000
(
01:19
+0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 14 Apr 2022 23:19:40 +0000
(
01:19
+0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 6d409c44c7908b6ffc28c8ceb9d4e9ffe674b3e9..4937d2ce26af7feacd9275c6488e324b866165b8 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-5416,10
+5416,11
@@
static void DrawScoreInfo_Content(int entry_nr)
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_para = getMenuTextStep(spacing_para, font_text);
int ystep_line = getMenuTextStep(spacing_line, font_text);
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_para = getMenuTextStep(spacing_para, font_text);
int ystep_line = getMenuTextStep(spacing_line, font_text);
+ int xstart = mSX - SX + menu.left_spacing[GAME_MODE_SCOREINFO];
int ystart = mSY - SY + menu.top_spacing[GAME_MODE_SCOREINFO];
int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO];
int ystart = mSY - SY + menu.top_spacing[GAME_MODE_SCOREINFO];
int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO];
- int xstart1 =
mSX - SX + 2 *
xstep;
- int xstart2 =
mSX - SX + 13 * xstep
;
+ int xstart1 =
xstart +
xstep;
+ int xstart2 =
xstart + xstep * 12
;
int select_x = SX + xstart1;
int select_y1, select_y2;
int play_x, play_y;
int select_x = SX + xstart1;
int select_y1, select_y2;
int play_x, play_y;
@@
-5429,7
+5430,7
@@
static void DrawScoreInfo_Content(int entry_nr)
int font_height = getFontHeight(font_text);
int tape_date_width = getTextWidth(tape_date, font_text);
int pad_left = xstart2;
int font_height = getFontHeight(font_text);
int tape_date_width = getTextWidth(tape_date, font_text);
int pad_left = xstart2;
- int pad_right =
MENU_SCREEN_INFO_SPACE_RIGHT
;
+ int pad_right =
menu.right_spacing[GAME_MODE_SCOREINFO]
;
int max_chars_per_line = (SXSIZE - pad_left - pad_right) / font_width;
int max_lines_per_text = 5;
int lines;
int max_chars_per_line = (SXSIZE - pad_left - pad_right) / font_width;
int max_lines_per_text = 5;
int lines;