From 4294ce7ebf7350f3d26dbe5350337aa9378d6797 Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Sun, 3 Jan 2010 16:56:13 -0500 Subject: [212] Fixing prompts clearing screen in tiles. The line reader was always switching back to GOTO_CRT. When receiving input from the message window, this ended up causing the screen to blank and switch to the CRT layer. Adding a function get the current cursor region allows the line reader to not change regions. --- crawl-ref/source/libgui.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/libgui.h') diff --git a/crawl-ref/source/libgui.h b/crawl-ref/source/libgui.h index 535a7cef5e..db0146fa59 100644 --- a/crawl-ref/source/libgui.h +++ b/crawl-ref/source/libgui.h @@ -59,6 +59,7 @@ int getch_ck(); int clrscr(); void message_out(int *which_line, int colour, const char *s, int firstcol = 0); void cgotoxy(int x, int y, GotoRegion region = GOTO_CRT); +GotoRegion get_cursor_region(); void clear_message_window(); void delay(int ms); void update_screen(); -- cgit v1.2.3-54-g00ecf