projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SDL: Remove the alpha channel and approximate with a colorkey if the texture doesn...
[supertux.git]
/
src
/
resources.cpp
diff --git
a/src/resources.cpp
b/src/resources.cpp
index
3931b2e
..
f0e6037
100644
(file)
--- a/
src/resources.cpp
+++ b/
src/resources.cpp
@@
-31,6
+31,7
@@
MouseCursor* mouse_cursor = NULL;
Font* gold_text = NULL;
MouseCursor* mouse_cursor = NULL;
Font* gold_text = NULL;
+Font* gold_fixed_text = NULL;
Font* blue_text = NULL;
Font* gray_text = NULL;
Font* white_text = NULL;
Font* blue_text = NULL;
Font* gray_text = NULL;
Font* white_text = NULL;
@@
-48,6
+49,9
@@
void load_shared()
gold_text = new Font(Font::VARIABLE,
"images/engine/fonts/gold.png",
"images/engine/fonts/shadow.png", 16, 18);
gold_text = new Font(Font::VARIABLE,
"images/engine/fonts/gold.png",
"images/engine/fonts/shadow.png", 16, 18);
+ gold_fixed_text = new Font(Font::FIXED,
+ "images/engine/fonts/gold.png",
+ "images/engine/fonts/shadow.png", 16, 18);
blue_text = new Font(Font::VARIABLE,
"images/engine/fonts/blue.png",
"images/engine/fonts/shadow.png", 16, 18, 3);
blue_text = new Font(Font::VARIABLE,
"images/engine/fonts/blue.png",
"images/engine/fonts/shadow.png", 16, 18, 3);
@@
-118,6
+122,7
@@
void unload_shared()
{
/* Free global images: */
delete gold_text;
{
/* Free global images: */
delete gold_text;
+ delete gold_fixed_text;
delete white_text;
delete blue_text;
delete gray_text;
delete white_text;
delete blue_text;
delete gray_text;
@@
-141,4
+146,7
@@
void unload_shared()
/* Free mouse-cursor */
delete mouse_cursor;
/* Free mouse-cursor */
delete mouse_cursor;
+
+ delete player_status;
+ player_status = NULL;
}
}