projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for bug #436 - just clear last_menus when set_current(NULL) is called
[supertux.git]
/
src
/
console.cpp
diff --git
a/src/console.cpp
b/src/console.cpp
index
28ea36c
..
9c82a0e
100644
(file)
--- a/
src/console.cpp
+++ b/
src/console.cpp
@@
-53,9
+53,7
@@
Console::~Console()
void
Console::init_graphics()
{
void
Console::init_graphics()
{
- font.reset(new Font(Font::FIXED,
- "images/engine/fonts/andale12.png",
- "images/engine/fonts/andale12-shadow.png", 7, 14, 1));
+ font.reset(new Font(Font::FIXED,"fonts/andale12.stf",1));
fontheight = font->get_height();
background.reset(new Surface("images/engine/console.png"));
background2.reset(new Surface("images/engine/console2.png"));
fontheight = font->get_height();
background.reset(new Surface("images/engine/console.png"));
background2.reset(new Surface("images/engine/console2.png"));
@@
-233,7
+231,7
@@
sq_insert_command(std::list<std::string>& cmds, HSQUIRRELVM vm, std::string tabl
key_string+=".";
if (search_prefix.substr(0, key_string.length()) == key_string) {
sq_getclass(vm, -1);
key_string+=".";
if (search_prefix.substr(0, key_string.length()) == key_string) {
sq_getclass(vm, -1);
- sq_insert_commands(cmds, vm, key_string, search_prefix);
+
sq_insert_commands(cmds, vm, key_string, search_prefix);
sq_pop(vm, 1);
}
break;
sq_pop(vm, 1);
}
break;
@@
-241,7
+239,7
@@
sq_insert_command(std::list<std::string>& cmds, HSQUIRRELVM vm, std::string tabl
case OT_CLASS:
key_string+=".";
if (search_prefix.substr(0, key_string.length()) == key_string) {
case OT_CLASS:
key_string+=".";
if (search_prefix.substr(0, key_string.length()) == key_string) {
- sq_insert_commands(cmds, vm, key_string, search_prefix);
+
sq_insert_commands(cmds, vm, key_string, search_prefix);
}
break;
case OT_CLOSURE:
}
break;
case OT_CLOSURE: