summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-10-08 14:01:51 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-10-08 14:01:51 +0000
commit1e1e15dd3ab111383b27f09f70eb590878254e00 (patch)
tree9f47098a3c1758d6d49b40e3b02442e2cae8fe85 /src/main.cpp
parent75da526f11f74b9bffb9580c2daf63108c294ca8 (diff)
downloadmana-client-1e1e15dd3ab111383b27f09f70eb590878254e00.tar.gz
mana-client-1e1e15dd3ab111383b27f09f70eb590878254e00.tar.bz2
mana-client-1e1e15dd3ab111383b27f09f70eb590878254e00.tar.xz
mana-client-1e1e15dd3ab111383b27f09f70eb590878254e00.zip
*** empty log message ***
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6d3cfbf3..abc67679 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,6 +24,7 @@
#include "main.h"
#include "./sound/sound.h"
#include "./graphic/graphic.h"
+#include "./graphic/2xsai.h"
#include <iostream>
@@ -62,21 +63,16 @@ void init_engine() {
set_config_file("tmw.ini");
#ifdef MACOSX
set_color_depth(32);
- Init_SuperEagle(32);
+ Init_2xSaI(32);
#else
set_color_depth(16);
- Init_SuperEagle(16);
+ Init_2xSaI(16);
#endif
stretch_mode = get_config_int("settings", "stretch", 0);
set_window_title("The Mana World");
- if(stretch_mode==0) {
- if(set_gfx_mode(get_config_int("settings", "screen", 0), 400, 300, 0, 0))
- error(allegro_error);
- } else {
- if(set_gfx_mode(get_config_int("settings", "screen", 0), 800, 600, 0, 0))
- error(allegro_error);
- }
- if(install_keyboard())
+ if(set_gfx_mode(get_config_int("settings", "screen", 0), 800, 600, 0, 0))
+ error(allegro_error);
+ if(install_keyboard())
error("Unable to install keyboard");
if(install_timer())
error("Unable to install timer");