aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-08-02 15:08:49 +0000
committerTorbjörn Andersson2007-08-02 15:08:49 +0000
commit4289509e209d3c21e55aafdd99a48c65d679852a (patch)
treec0a9bf7950274f47d113b3d4643a5a77ff5c1b90 /engines
parentccc9359181a30813321911501c9721bf8556f592 (diff)
downloadscummvm-rg350-4289509e209d3c21e55aafdd99a48c65d679852a.tar.gz
scummvm-rg350-4289509e209d3c21e55aafdd99a48c65d679852a.tar.bz2
scummvm-rg350-4289509e209d3c21e55aafdd99a48c65d679852a.zip
Fixed warnings. (A key code does not fit in a byte.)
svn-id: r28408
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/drascula.cpp6
-rw-r--r--engines/drascula/drascula.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 44f377d0f1..a1e184826c 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -514,7 +514,7 @@ bucles:
else
menu_bar = 0;
- byte key = getscan();
+ Common::KeyCode key = getscan();
if (key == Common::KEYCODE_F1 && menu_scr == 0) {
elige_verbo(1);
cont_sv = 0;
@@ -1533,7 +1533,7 @@ void DrasculaEngine::comprueba2() {
}
}
-byte DrasculaEngine::getscan() {
+Common::KeyCode DrasculaEngine::getscan() {
update_events();
return _keyPressed.keycode;
@@ -3560,7 +3560,7 @@ void DrasculaEngine::cursor_mesa() {
}
void DrasculaEngine::introduce_nombre() {
- byte key;
+ Common::KeyCode key;
int v = 0, h = 0;
char select2[23];
strcpy(select2, " ");
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h
index 91ace757c4..a5947d73e7 100644
--- a/engines/drascula/drascula.h
+++ b/engines/drascula/drascula.h
@@ -487,7 +487,7 @@ public:
void elige_en_barra();
bool comprueba1();
void comprueba2();
- byte getscan();
+ Common::KeyCode getscan();
void elige_verbo(int);
void mesa();
void saves();