summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 01:33:53 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 01:33:53 +0000
commit62f7040f14b39e67042be98f951575fbc819e84e (patch)
treed4fa0598a1bee1d34fff81e2c150de08c2256753 /crawl-ref/source/cio.cc
parent19155f1f85058ef9d65d11e60c63cc69c36d4e8a (diff)
downloadcrawl-ref-62f7040f14b39e67042be98f951575fbc819e84e.tar.gz
crawl-ref-62f7040f14b39e67042be98f951575fbc819e84e.zip
Tiles!
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index 12909bf5e2..fcaaa7adc1 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -121,7 +121,9 @@ void get_input_line( char *const buff, int len )
return;
}
-#if defined(UNIX)
+#if defined(USE_TILE)
+ get_input_line_gui( buff, len );
+#elif defined(UNIX)
get_input_line_from_curses( buff, len ); // implemented in libunix.cc
#elif defined(WIN32CONSOLE)
getstr( buff, len );
@@ -169,13 +171,15 @@ int c_getch()
// cursoring over darkgray or black causes problems.
void cursorxy(int x, int y)
{
-#ifdef UNIX
+#if defined(USE_TILE)
+ tile_place_cursor(x-1, y-1, true);
+#elif defined(UNIX) && !defined(USE_TILE)
if (Options.use_fake_cursor)
fakecursorxy(x, y);
else
- gotoxy(x, y);
+ gotoxy(x, y, GOTO_DNGN);
#else
- gotoxy(x, y);
+ gotoxy(x, y, GOTO_DNGN);
#endif
}
@@ -317,7 +321,7 @@ void line_reader::cursorto(int ncx)
{
int x = (start_x + ncx - 1) % wrapcol + 1;
int y = start_y + (start_x + ncx - 1) / wrapcol;
- ::gotoxy(x, y);
+ ::gotoxy(x, y, GOTO_LAST);
}
int line_reader::read_line(bool clear_previous)