summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorRaymond Chandler III <Animegalore1985@yahoo.com>2004-12-11 03:54:51 +0000
committerRaymond Chandler III <Animegalore1985@yahoo.com>2004-12-11 03:54:51 +0000
commit4d2d32fcba26b6beca1f56bbc38de6ccffe62835 (patch)
treef447f49097bfa2aabb88bc6afa25a1f5b17efc5f /src/game.cpp
parent307665c65d50a0fee26083934f4795f5e78a8a11 (diff)
downloadMana-4d2d32fcba26b6beca1f56bbc38de6ccffe62835.tar.gz
Mana-4d2d32fcba26b6beca1f56bbc38de6ccffe62835.tar.bz2
Mana-4d2d32fcba26b6beca1f56bbc38de6ccffe62835.tar.xz
Mana-4d2d32fcba26b6beca1f56bbc38de6ccffe62835.zip
*** empty log message ***
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e980c347..a0e428ae 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -231,21 +231,10 @@ void do_input() {
if(key[KEY_F10] && action_time==true) {
//was 3 goes to 0
//was 0 goes to 3
- if(true == is_windowed_mode())
- {
- set_color_depth(32);
- if( 0 != set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 800, 600, 0, 0))//Not equal: to add support for other hardware platforms
- error(allegro_error);
- }
- else
- {
- set_color_depth(32);//set color depth beace we have to before we reset the gfx_mode
- if( 0 != set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0))//Not equal: to add support for other hardware platforms
- error(allegro_error);
- }
- //screen_mode = 1-(screen_mode-1)+1;//Bug is here
- //if( 0 != set_gfx_mode(screen_mode, 800, 600, 0, 0))//less than: to add support for other hardware platforms
- // error(allegro_error);
+
+ screen_mode = 1-(screen_mode-1)+1;//Bug is here
+ if( 0 != set_gfx_mode(screen_mode, 800, 600, 0, 0))//less than: to add support for other hardware platforms
+ error(allegro_error);
}
if(key[KEY_F11] && action_time==true)