summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2012-06-14 02:25:15 +0200
committerPetr Mrázek2012-06-14 02:25:15 +0200
commit2781723f7bf2bef87b7c6c5252aebd6392cbefbf (patch)
treea01abfd5cf2d1307ed6a58f6f98a91fbb2a3fe59 /library/Core.cpp
parent456c637d821ec2c6e73cebfeb87a9d93ab8b5ea8 (diff)
downloaddfhack-2781723f7bf2bef87b7c6c5252aebd6392cbefbf.tar.gz
dfhack-2781723f7bf2bef87b7c6c5252aebd6392cbefbf.tar.bz2
dfhack-2781723f7bf2bef87b7c6c5252aebd6392cbefbf.tar.xz
Linux build works again.
Diffstat (limited to 'library/Core.cpp')
-rw-r--r--library/Core.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/Core.cpp b/library/Core.cpp
index 165f5e5e..620fc81d 100644
--- a/library/Core.cpp
+++ b/library/Core.cpp
@@ -1220,9 +1220,8 @@ bool Core::ncurses_wgetch(int in, int & out)
return true;
}
-int UnicodeAwareSym(const SDL::Event& event)
+int UnicodeAwareSym(const SDL::KeyboardEvent& ke)
{
- auto ke = (const SDL::KeyboardEvent &) event;
// Assume keyboard layouts don't change the order of numbers:
if( '0' <= ke.ksym.sym && ke.ksym.sym <= '9') return ke.ksym.sym;
if(SDL::K_F1 <= ke.ksym.sym && ke.ksym.sym <= SDL::K_F12) return ke.ksym.sym;