summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b8b37ddd..120fb881 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -216,7 +216,7 @@ void init_engine() {
stretch_mode = (unsigned char)config.getValue("stretch", 0);
set_window_title("The Mana World");
- if(set_gfx_mode(get_config_int("settings", "screen", 0), 800, 600, 0, 0)) {
+ if(set_gfx_mode((unsigned char)config.getValue("screen", 0), 800, 600, 0, 0)) {
error(allegro_error);
}