diff options
author | Raymond Chandler III <Animegalore1985@yahoo.com> | 2004-12-11 03:29:21 +0000 |
---|---|---|
committer | Raymond Chandler III <Animegalore1985@yahoo.com> | 2004-12-11 03:29:21 +0000 |
commit | f8cbefe483d5735955c1da10220db9a903bf6d5f (patch) | |
tree | b35708d489253cd3b207d576d353289072dc3161 /src/game.cpp | |
parent | 71bc0d755918005beb198de70f5a5bbe4127fde7 (diff) | |
download | mana-client-f8cbefe483d5735955c1da10220db9a903bf6d5f.tar.gz mana-client-f8cbefe483d5735955c1da10220db9a903bf6d5f.tar.bz2 mana-client-f8cbefe483d5735955c1da10220db9a903bf6d5f.tar.xz mana-client-f8cbefe483d5735955c1da10220db9a903bf6d5f.zip |
*** empty log message ***
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index bde63279..27f260e9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -231,19 +231,21 @@ void do_input() { if(key[KEY_F10] && action_time==true) { //was 3 goes to 0 //was 0 goes to 3 - if(3 == screen_mode) + if(is_windowed_mode()) { - screen_mode = 0; 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 { - screen_mode = 3; 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); + //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) |