@@ -27,8 +27,8 @@
|
||||
#include "safeguards.h"
|
||||
|
||||
struct EndGameHighScoreBaseWindow : Window {
|
||||
uint32 background_img;
|
||||
int8 rank;
|
||||
uint32_t background_img;
|
||||
int8_t rank;
|
||||
|
||||
EndGameHighScoreBaseWindow(WindowDesc *desc) : Window(desc)
|
||||
{
|
||||
@@ -67,7 +67,7 @@ struct EndGameHighScoreBaseWindow : Window {
|
||||
this->Close();
|
||||
}
|
||||
|
||||
EventState OnKeyPress(WChar key, uint16 keycode) override
|
||||
EventState OnKeyPress(char32_t key, uint16_t keycode) override
|
||||
{
|
||||
/* All keys are 'handled' by this window but we want to make
|
||||
* sure that 'quit' still works correctly. Not handling the
|
||||
@@ -155,7 +155,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow {
|
||||
struct HighScoreWindow : EndGameHighScoreBaseWindow {
|
||||
bool game_paused_by_player; ///< True if the game was paused by the player when the highscore window was opened.
|
||||
|
||||
HighScoreWindow(WindowDesc *desc, int difficulty, int8 ranking) : EndGameHighScoreBaseWindow(desc)
|
||||
HighScoreWindow(WindowDesc *desc, int difficulty, int8_t ranking) : EndGameHighScoreBaseWindow(desc)
|
||||
{
|
||||
/* pause game to show the chart */
|
||||
this->game_paused_by_player = _pause_mode == PM_PAUSED_NORMAL;
|
||||
@@ -230,7 +230,7 @@ static WindowDesc _endgame_desc(__FILE__, __LINE__,
|
||||
* endgame ranking is set to the top5 element that was newly added
|
||||
* and is thus highlighted
|
||||
*/
|
||||
void ShowHighscoreTable(int difficulty, int8 ranking)
|
||||
void ShowHighscoreTable(int difficulty, int8_t ranking)
|
||||
{
|
||||
CloseWindowByClass(WC_HIGHSCORE);
|
||||
new HighScoreWindow(&_highscore_desc, difficulty, ranking);
|
||||
|
Reference in New Issue
Block a user