diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-21 16:44:36 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-21 16:44:36 +0000 |
commit | 428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7 (patch) | |
tree | 81de9ddd8724a5c8f1be6d9a965e3973b8bc73a2 | |
parent | f5e77458a8e34e33fba6af1b04aa5bfefe51149a (diff) | |
download | mana-client-428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7.tar.gz mana-client-428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7.tar.bz2 mana-client-428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7.tar.xz mana-client-428c4cc8bba2e8a385a6f51d3788b7ab3c9ce4c7.zip |
Auto detect keyboard WIN32
-rw-r--r-- | The Mana World.dev | 2 | ||||
-rw-r--r-- | docs/INSTALL/debian.txt | 8 | ||||
-rw-r--r-- | src/game.cpp | 12 | ||||
-rw-r--r-- | src/main.cpp | 2 |
4 files changed, 18 insertions, 6 deletions
diff --git a/The Mana World.dev b/The Mana World.dev index 40b73ef6..951db15c 100644 --- a/The Mana World.dev +++ b/The Mana World.dev @@ -33,7 +33,7 @@ CompilerSettings=0000001001001000001101 Major=0 Minor=0 Release=8 -Build=187 +Build=188 LanguageID=1033 CharsetID=1252 CompanyName=The Mana World Development Team diff --git a/docs/INSTALL/debian.txt b/docs/INSTALL/debian.txt index 146a84c9..50fdbd1e 100644 --- a/docs/INSTALL/debian.txt +++ b/docs/INSTALL/debian.txt @@ -1,7 +1,7 @@ How to install TMW on my GNU/Debian Box ================================================== -Author: FERREIRA Yohann (Bertram) +Author: FERREIRA Yohann (Bertram) Email: Bertram25@hotmail.com Homepage: http://www.behemoth.fr.fm (Take a tour on it with mozilla !) @@ -21,11 +21,11 @@ The Mana World Debian Package can be installed under the Debian Testing and Unst In order to have Mana World working, you'll need the following packages that are situed in : - JGMod : -http://themanaworl.sourceforge.net/files/jgmod_0.99_i386.deb +http://themanaworld.sourceforge.net/files/jgmod_0.99_i386.deb - AlFont : -http://themanaworl.sourceforge.net/files/libalfont_1.9.2_i386.deb +http://themanaworld.sourceforge.net/files/libalfont_1.9.2_i386.deb -Note : If the packages names mismatches, check the page : http://themanaworl.sourceforge.net/files/ +Note : If the packages names mismatches, check the page : http://themanaworld.sourceforge.net/files/ to look for the latest version of these packages. When you've grabbed them, install them (as root) with the commands : diff --git a/src/game.cpp b/src/game.cpp index 84aa85d3..a1fb7a54 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -49,6 +49,7 @@ unsigned char keyb_state; volatile int tick_time; volatile bool refresh = false, action_time = false; int current_npc, server_tick; +extern unsigned char screen_mode; #define MAX_TIME 10000 @@ -228,6 +229,17 @@ void do_input() { action_time = false; //alert("","","","","",0,0); } + if(key[KEY_F12] && action_time==true) { + if(screen_mode==2) { + screen_mode = 1; + } else { + screen_mode = 2; + } + if(set_gfx_mode(screen_mode, 800, 600, 0, 0)) { + error(allegro_error); + } + action_time = false; + } if(key[KEY_ENTER]) { if(strcmp(speech, "")!=0) { diff --git a/src/main.cpp b/src/main.cpp index f354a435..b9c501d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,7 +90,7 @@ unsigned char state; unsigned short x, y; unsigned char direction; //unsigned short job, hair, hair_color; -unsigned char stretch_mode; +unsigned char stretch_mode, screen_mode; // new sound-engine /- kth5 TmwSound sound; |