summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-04-23 16:05:17 -0400
committerNeil Moore <neil@s-z.org>2012-04-23 16:05:17 -0400
commitccaa78690536b6c00cb890a45c6f6a1499e8998f (patch)
treeeb6cde0c4e50363ddf78ea05ffafb5dc9cb82c05 /crawl-ref/source/libunix.cc
parent502efc8e3f683e52723653b96d187eb81b3a2076 (diff)
downloadcrawl-ref-ccaa78690536b6c00cb890a45c6f6a1499e8998f.tar.gz
crawl-ref-ccaa78690536b6c00cb890a45c6f6a1499e8998f.zip
Unbreak builds against curses variants without KEY_RESIZE.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 34735f02ba..c25a5fb298 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -273,8 +273,11 @@ int m_getch()
c = proc_mouse_event(c, &me);
}
#endif
- } while (c == -KEY_RESIZE
- || ((c == CK_MOUSE_MOVE || c == CK_MOUSE_CLICK)
+ } while (
+#ifdef KEY_RESIZE
+ c == -KEY_RESIZE ||
+#endif
+ ((c == CK_MOUSE_MOVE || c == CK_MOUSE_CLICK)
&& !crawl_state.mouse_enabled));
return (c);