diff options
author | Marcus Comstedt | 2003-06-18 21:13:58 +0000 |
---|---|---|
committer | Marcus Comstedt | 2003-06-18 21:13:58 +0000 |
commit | be0bdf687ab5687dca0716b430c2539c45fa199d (patch) | |
tree | 4eebd69240489c40e08728d801149bc04be85d86 /backends | |
parent | 2aed2d92845ebc04c70767feacffc5febb8d95ef (diff) | |
download | scummvm-rg350-be0bdf687ab5687dca0716b430c2539c45fa199d.tar.gz scummvm-rg350-be0bdf687ab5687dca0716b430c2539c45fa199d.tar.bz2 scummvm-rg350-be0bdf687ab5687dca0716b430c2539c45fa199d.zip |
Added casts to EventCode.
svn-id: r8542
Diffstat (limited to 'backends')
-rw-r--r-- | backends/dc/input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/dc/input.cpp b/backends/dc/input.cpp index 57530579b5..af7544e033 100644 --- a/backends/dc/input.cpp +++ b/backends/dc/input.cpp @@ -170,7 +170,7 @@ bool OSystem_Dreamcast::poll_event(Event *event) } event->kbd.ascii = event->kbd.keycode = 0; if(e<0) { - event->event_code = -e; + event->event_code = (EventCode)-e; return true; } else if(e>0) { event->event_code = ((e&(1<<30))? EVENT_KEYUP : EVENT_KEYDOWN); @@ -185,7 +185,7 @@ bool OSystem_Dreamcast::poll_event(Event *event) _ms_old_y = _ms_cur_y; return true; } else { - event->event_code = 0; + event->event_code = (EventCode)0; return false; } } |