summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-10-16 17:03:24 +0200
committerFlorian Diebold <flodiebold@gmail.com>2011-10-16 17:05:17 +0200
commit67b72ca73f68b09c573bf6692199de85e8999ee2 (patch)
tree58dba60db95564d87d035631d50694fb05df650e /crawl-ref/source/cio.cc
parentd264d1f036edb17d13725982cf68f0430c6a81e6 (diff)
downloadcrawl-ref-67b72ca73f68b09c573bf6692199de85e8999ee2.tar.gz
crawl-ref-67b72ca73f68b09c573bf6692199de85e8999ee2.zip
Show the targeting cursor in Webtiles.
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index c5aff06e01..207d50d8f5 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -107,11 +107,14 @@ int unmangle_direction_keys(int keyin, KeymapContext keymap,
// cursoring over darkgrey or black causes problems.
void cursorxy(int x, int y)
{
-#if defined(USE_TILE_LOCAL)
+#ifdef USE_TILE
coord_def ep(x, y);
coord_def gc = crawl_view.screen2grid(ep);
tiles.place_cursor(CURSOR_MOUSE, gc);
-#elif defined(UNIX)
+#endif
+
+#ifndef USE_TILE_LOCAL
+#if defined(UNIX)
if (Options.use_fake_cursor)
fakecursorxy(x, y);
else
@@ -119,6 +122,7 @@ void cursorxy(int x, int y)
#else
cgotoxy(x, y, GOTO_CRT);
#endif
+#endif
}
// cprintf that stops outputting when wrapped