aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2004-12-05 17:42:20 +0000
committerMax Horn2004-12-05 17:42:20 +0000
commitf09293b22cdec7d8b309baea0a58e93757c77913 (patch)
tree24a0814b173e6607e88d8e71163bcbc9d9d340ac /sword2
parent8d4fcb1689a4c80fa9ef3ec84194fa791bd2c00e (diff)
downloadscummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.gz
scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.tar.bz2
scummvm-rg350-f09293b22cdec7d8b309baea0a58e93757c77913.zip
Clean up OSystem::Event
svn-id: r15990
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/animation.cpp2
-rw-r--r--sword2/sword2.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/sword2/driver/animation.cpp b/sword2/driver/animation.cpp
index 69dbc0289a..524f6e09ae 100644
--- a/sword2/driver/animation.cpp
+++ b/sword2/driver/animation.cpp
@@ -255,7 +255,7 @@ int32 MoviePlayer::play(const char *filename, MovieTextObject *text[], byte *mus
OSystem::Event event;
while (_sys->pollEvent(event)) {
- switch (event.event_code) {
+ switch (event.type) {
#ifndef BACKEND_8BIT
case OSystem::EVENT_SCREEN_CHANGED:
anim->invalidateLookup(true);
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index b37d820eea..27ce3e0ae3 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -419,7 +419,7 @@ void Sword2Engine::parseEvents() {
OSystem::Event event;
while (_system->pollEvent(event)) {
- switch (event.event_code) {
+ switch (event.type) {
case OSystem::EVENT_KEYDOWN:
if (!(_eventFilter & RD_KEYDOWN)) {
_keyboardEvent.pending = true;