From 65c1d2b0b022de1340509738e65314474e2eb141 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 13 Jan 2005 23:38:31 +0000 Subject: Added heavily modified resource manager by zenogais that is currently using Allegro to load/draw images. Only the login wallpaper is currently loaded using the resource manager and the resource manager still waits with searching for available files until they are asked for instead of indexing what is available. --- src/gui/char_select.cpp | 2 +- src/gui/char_server.cpp | 2 +- src/gui/login.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 259a01b9..87a30000 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -437,7 +437,7 @@ void charSelect() } // Draw background - blit(login_wallpaper, buffer, 0, 0, 0, 0, 800, 600); + login_wallpaper->draw(buffer, 0, 0); gui->update(); diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index 82c5f05e..3b9d03c8 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -117,7 +117,7 @@ void char_server() { showServerList = 1; while (showServerList) { - blit(login_wallpaper, buffer, 0, 0, 0, 0, 800, 600); + login_wallpaper->draw(buffer, 0, 0); gui->update(); blit(buffer, screen, 0, 0, 0, 0, 800, 600); } diff --git a/src/gui/login.cpp b/src/gui/login.cpp index b1e8b43e..6db212b2 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -131,7 +131,7 @@ void login() { LoginDialog *dialog = new LoginDialog(); while (state == LOGIN) { - blit(login_wallpaper, buffer, 0, 0, 0, 0, 800, 600); + login_wallpaper->draw(buffer, 0, 0); gui->update(); blit(buffer, screen, 0, 0, 0, 0, 800, 600); if (key[KEY_ESC]) { -- cgit v1.2.3-70-g09d2