summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
commitb5a9e699b9685e2a7d448171e282fd284754caf1 (patch)
tree4c8787fb30d28ec685bbcbb2ddca962b838a256d /src/gui/setup.cpp
parentadf5fb5d45c11a0506d199d2cc672535c8418ce1 (diff)
downloadmana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.gz
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.bz2
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.xz
mana-b5a9e699b9685e2a7d448171e282fd284754caf1.zip
Logger Implemented. (3/3)
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 6e3197cd..13ba937d 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -50,12 +50,12 @@ ModeListModel::ModeListModel()
// Check if any modes available
if (modes == (SDL_Rect**)0) {
nmode = 0;
- log("No modes");
+ logger.log("No modes");
}
// Check if modes restricted
if (modes == (SDL_Rect**)-1) {
- log("Modes unrestricted");
+ logger.log("Modes unrestricted");
}
for (nmode = 0; modes[nmode]; ++nmode);
@@ -66,7 +66,7 @@ ModeListModel::ModeListModel()
char *temp = (char*)malloc(20 * sizeof(char));
mode[i] = temp;
if (sprintf(mode[i], "%d x %d", modes[i]->w, modes[i]->h) == -1) {
- log("Cannot allocate mode list");
+ logger.log("Cannot allocate mode list");
}
}
}
@@ -229,7 +229,7 @@ void Setup::action(const std::string &eventId)
}
catch (const char *err) {
new OkDialog(this, "Sound Engine", err);
- log("Warning: %s", err);
+ logger.log("Warning: %s", err);
}
} else {
config.setValue("sound", 0);