diff options
author | pixel <pixel> | 2004-12-27 18:46:43 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-12-27 18:46:43 +0000 |
commit | 8587b087d9c686dd4a35a4f90c56856249f704e6 (patch) | |
tree | 1bbeab0de30768433b5b6526e6596d3b74a73d42 /Dalos/Dalos.cc | |
parent | dcd5161f4721d77d37e45f4281e8882bea2cd879 (diff) |
A few minor changes...
Diffstat (limited to 'Dalos/Dalos.cc')
-rw-r--r-- | Dalos/Dalos.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc index 6ab2153..bbfdadf 100644 --- a/Dalos/Dalos.cc +++ b/Dalos/Dalos.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Dalos.cc,v 1.12 2004-12-26 03:29:10 pixel Exp $ */
+/* $Id: Dalos.cc,v 1.13 2004-12-27 18:46:43 pixel Exp $ */
#include <SDL.h>
#include <SDL_thread.h>
@@ -48,6 +48,8 @@ #define main SDL_main
#endif
+
+// all these global variables are ugly...
bool auto_exec = true;
bool lua_started = false;
bool do_lua_break = false;
@@ -196,7 +198,7 @@ class myprinter : public printer_t { SDL_mutexP(lock);
- vsprintf(buffer, m, ap);
+ vsnprintf(buffer, 20479, m, ap);
if (level >= 0)
CurrentConsole->add_line("(" + heads[level] + ") " + buffer);
else
@@ -322,7 +324,8 @@ virtual int startup() throw (GeneralException) { CurrentConsole = new console(sh, Root, 0, 8);
console::create_console_thread();
CurrentConsole->move(0, Root->GetH() - CurrentConsole->GetH());
- CurrentConsole->add_line("Dalos v0.1 - LUA console");
+ CurrentConsole->add_line("Dalos v0.1 - LUA console - Press ESC to show/hide it.");
+ CurrentConsole->SetVisible(true);
printer = new myprinter();
locker = new threaded_locker();
|