projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
aba7c97
)
renamed function and parameters
author
Holger Schemel
<holger.schemel@virtion.de>
Thu, 31 Mar 2022 12:56:16 +0000
(14:56 +0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Thu, 31 Mar 2022 12:56:16 +0000
(14:56 +0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index a80a51886a71520106fdda8ef1de1c5bc4fa5803..5f1a634a25a6f93aab112e9f823c530f4a0f6942 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-299,7
+299,7
@@
static void MapScreenTreeGadgets(TreeInfo *);
static void UnmapScreenTreeGadgets(void);
static void UpdateScreenMenuGadgets(int, boolean);
static void UnmapScreenTreeGadgets(void);
static void UpdateScreenMenuGadgets(int, boolean);
-static void AdjustScoreInfoButtons(int, int, int);
+static void AdjustScoreInfoButtons
_SelectScore
(int, int, int);
static boolean OfferUploadTapes(void);
static void execOfferUploadTapes(void);
static boolean OfferUploadTapes(void);
static void execOfferUploadTapes(void);
@@
-5773,8
+5773,8
@@
static void DrawScoreInfo_Content(int entry_nr)
int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO];
int xstart1 = mSX - SX + 2 * xstep;
int xstart2 = mSX - SX + 13 * xstep;
int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO];
int xstart1 = mSX - SX + 2 * xstep;
int xstart2 = mSX - SX + 13 * xstep;
- int
button
_x = SX + xstart1;
- int
button_y1, button
_y2;
+ int
select
_x = SX + xstart1;
+ int
select_y1, select
_y2;
int font_width = getFontWidth(font_text);
int font_height = getFontHeight(font_text);
int pad_left = xstart2;
int font_width = getFontWidth(font_text);
int font_height = getFontHeight(font_text);
int pad_left = xstart2;
@@
-5813,7
+5813,7
@@
static void DrawScoreInfo_Content(int entry_nr)
TRUE, FALSE, FALSE);
ystart += ystep_para + (lines > 0 ? lines - 1 : 0) * font_height;
TRUE, FALSE, FALSE);
ystart += ystep_para + (lines > 0 ? lines - 1 : 0) * font_height;
-
button
_y1 = SY + ystart;
+
select
_y1 = SY + ystart;
ystart += graphic_info[IMG_MENU_BUTTON_PREV_SCORE].height;
DrawTextF(xstart1, ystart, font_head, "Rank");
ystart += graphic_info[IMG_MENU_BUTTON_PREV_SCORE].height;
DrawTextF(xstart1, ystart, font_head, "Rank");
@@
-5864,11
+5864,11
@@
static void DrawScoreInfo_Content(int entry_nr)
TRUE, FALSE, FALSE);
ystart += ystep_line;
TRUE, FALSE, FALSE);
ystart += ystep_line;
-
button
_y2 = SY + ystart;
+
select
_y2 = SY + ystart;
DrawTextSCentered(ybottom, font_foot, "Press any key or button to go back");
DrawTextSCentered(ybottom, font_foot, "Press any key or button to go back");
- AdjustScoreInfoButtons
(button_x, button_y1, button
_y2);
+ AdjustScoreInfoButtons
_SelectScore(select_x, select_y1, select
_y2);
}
static void DrawScoreInfo(int entry_nr)
}
static void DrawScoreInfo(int entry_nr)
@@
-10365,7
+10365,7
@@
static void UnmapScreenTreeGadgets(void)
UnmapScreenGadgets();
}
UnmapScreenGadgets();
}
-static void AdjustScoreInfoButtons(int x, int y1, int y2)
+static void AdjustScoreInfoButtons
_SelectScore
(int x, int y1, int y2)
{
struct GadgetInfo *gi_1 = screen_gadget[SCREEN_CTRL_ID_PREV_SCORE];
struct GadgetInfo *gi_2 = screen_gadget[SCREEN_CTRL_ID_NEXT_SCORE];
{
struct GadgetInfo *gi_1 = screen_gadget[SCREEN_CTRL_ID_PREV_SCORE];
struct GadgetInfo *gi_2 = screen_gadget[SCREEN_CTRL_ID_NEXT_SCORE];