diff options
author | Douglas Boffey <DougABoffey@netscape.net> | 2008-09-04 16:56:10 +0000 |
---|---|---|
committer | Douglas Boffey <DougABoffey@netscape.net> | 2008-09-04 16:56:10 +0000 |
commit | 7946cd875877870e7cab002cba099d21cf9fc063 (patch) | |
tree | 38dd4c1c4a766edda7b3156e2bc1af08dbd94a6a /src/main.cpp | |
parent | 27e8d20ad8b5590995d1d4af3563f8956f180373 (diff) | |
download | mana-7946cd875877870e7cab002cba099d21cf9fc063.tar.gz mana-7946cd875877870e7cab002cba099d21cf9fc063.tar.bz2 mana-7946cd875877870e7cab002cba099d21cf9fc063.tar.xz mana-7946cd875877870e7cab002cba099d21cf9fc063.zip |
Added code to change text colouring
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 57eb67bb..f1bd89f4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,6 +66,7 @@ #include "gui/char_server.h" #include "gui/char_select.h" +#include "gui/colour.h" #include "gui/gui.h" #include "gui/login.h" #include "gui/ok_dialog.h" @@ -117,6 +118,7 @@ CharServerHandler charServerHandler; LoginData loginData; LockedArray<LocalPlayer*> charInfo(MAX_SLOT + 1); +Colour *textColour; // This anonymous namespace hides whatever is inside from other modules. namespace { @@ -736,6 +738,9 @@ int main(int argc, char *argv[]) if (!login_wallpaper) logger->log("Couldn't load %s as wallpaper", wallpaperName.c_str()); + // Needs to be created in main, as the updater uses it + textColour = new Colour(); + while (state != EXIT_STATE) { // Handle SDL events @@ -978,6 +983,7 @@ int main(int argc, char *argv[]) usleep(50000); } + delete textColour; #ifdef PACKAGE_VERSION delete versionLabel; #endif |