projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The BIG COMMIT(tm)
[supertux.git]
/
src
/
high_scores.cpp
diff --git
a/src/high_scores.cpp
b/src/high_scores.cpp
index
1685e4b
..
86b1eb6
100644
(file)
--- a/
src/high_scores.cpp
+++ b/
src/high_scores.cpp
@@
-20,6
+20,8
@@
/* Open the highscore file: */
/* Open the highscore file: */
+#include <config.h>
+
#include <cstring>
#include <cstdlib>
#include <cstring>
#include <cstdlib>
@@
-102,12
+104,12
@@
void save_hs(int score)
{
context.draw_surface(bkgd, Vector(0, 0), LAYER_BACKGROUND0);
{
context.draw_surface(bkgd, Vector(0, 0), LAYER_BACKGROUND0);
- context.draw_text
_center
(blue_text, "Congratulations",
- Vector(
0, 130)
, LAYER_FOREGROUND1);
+ context.draw_text(blue_text, "Congratulations",
+ Vector(
screen->w/2, 130), CENTER_ALLIGN
, LAYER_FOREGROUND1);
context.draw_text(blue_text, "Your score:", Vector(150, 180),
context.draw_text(blue_text, "Your score:", Vector(150, 180),
- LAYER_FOREGROUND1);
+ L
EFT_ALLIGN, L
AYER_FOREGROUND1);
sprintf(str, "%d", hs_score);
sprintf(str, "%d", hs_score);
- context.draw_text(yellow_nums, str, Vector(250, 170), LAYER_FOREGROUND1);
+ context.draw_text(yellow_nums, str, Vector(250, 170), L
EFT_ALLIGN, L
AYER_FOREGROUND1);
Menu::current()->draw(context);
Menu::current()->action();
Menu::current()->draw(context);
Menu::current()->action();