summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaymond Chandler III <Animegalore1985@yahoo.com>2004-12-11 03:05:30 +0000
committerRaymond Chandler III <Animegalore1985@yahoo.com>2004-12-11 03:05:30 +0000
commit71bc0d755918005beb198de70f5a5bbe4127fde7 (patch)
treea5f961f6bc167df90a87daba9122e37b6c508139 /src
parent06c3e2cbf10034bd348376632ccc30de9da97e5d (diff)
downloadmana-client-71bc0d755918005beb198de70f5a5bbe4127fde7.tar.gz
mana-client-71bc0d755918005beb198de70f5a5bbe4127fde7.tar.bz2
mana-client-71bc0d755918005beb198de70f5a5bbe4127fde7.tar.xz
mana-client-71bc0d755918005beb198de70f5a5bbe4127fde7.zip
fixed F10 bug
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d05f7821..bde63279 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -229,8 +229,20 @@ void do_input() {
}
if(key[KEY_F10] && action_time==true) {
- screen_mode = 1-(screen_mode-1)+1;
- if(set_gfx_mode(screen_mode, 800, 600, 0, 0))
+ //was 3 goes to 0
+ //was 0 goes to 3
+ if(3 == screen_mode)
+ {
+ screen_mode = 0;
+ set_color_depth(32);
+ }
+ else
+ {
+ screen_mode = 3;
+ set_color_depth(32);//set color depth beace we have to before we reset the gfx_mode
+ }
+ //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);
}