diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-16 14:29:42 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-16 14:29:42 +0000 |
commit | 51224bed60d5bed45b53e99b44bc1123a2a9cb68 (patch) | |
tree | 2acbf76139b6ef76d21aaf98ee09e326a59c4467 /src/main.cpp | |
parent | 96e61ed3ff7e41976ac8788363d6df8719037962 (diff) | |
download | mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.gz mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.bz2 mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.tar.xz mana-51224bed60d5bed45b53e99b44bc1123a2a9cb68.zip |
Made Image/SubImage being drawn by Graphics. Removed some redundant code.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2efcc519..1f2ac73f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,9 @@ #include <errno.h> #endif +// TODO Check if we can get rid of this +extern SDL_Surface *screen; + // Account infos int account_ID, session_ID1, session_ID2; char sex, n_server, n_character; @@ -433,7 +436,7 @@ int main(int argc, char *argv[]) break; case ERROR: // Redraw GUI - login_wallpaper->draw(screen, 0, 0); + graphics->drawImage(login_wallpaper, 0 ,0); gui->logic(); gui->draw(); graphics->updateScreen(); |