From 62f7040f14b39e67042be98f951575fbc819e84e Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 5 Jan 2008 01:33:53 +0000 Subject: Tiles! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.cc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/libutil.cc') diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 8b5bb7bbac..7c6a412303 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -13,6 +13,7 @@ #include "AppHdr.h" #include "defines.h" +#include "direct.h" #include "initfile.h" #include "libutil.h" #include "externs.h" @@ -24,7 +25,7 @@ #include #include -#ifdef WIN32CONSOLE +#if defined(WIN32CONSOLE) || defined(WIN32TILES) #include #ifdef WINMM_PLAY_SOUNDS @@ -567,6 +568,24 @@ int snprintf( char *str, size_t size, const char *format, ... ) #endif +#ifndef USE_TILE +void gotoxy(int x, int y, int region) +{ + switch(region) + { + case GOTO_STAT: + gotoxy_sys(x + crawl_view.hudp.x - 1, y + crawl_view.hudp.y - 1); + break; + case GOTO_MSG: + gotoxy_sys(x + crawl_view.msgp.x - 1, y + crawl_view.msgp.y - 1); + break; + case GOTO_CRT: + default: + gotoxy_sys(x, y); + break; + } +} +#endif /////////////////////////////////////////////////////////////////////// // Pattern matching -- cgit v1.2.3-54-g00ecf