diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-05 01:33:53 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-05 01:33:53 +0000 |
commit | 62f7040f14b39e67042be98f951575fbc819e84e (patch) | |
tree | d4fa0598a1bee1d34fff81e2c150de08c2256753 /crawl-ref/source/libutil.cc | |
parent | 19155f1f85058ef9d65d11e60c63cc69c36d4e8a (diff) | |
download | crawl-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/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 21 |
1 files changed, 20 insertions, 1 deletions
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 <stdarg.h> #include <string.h> -#ifdef WIN32CONSOLE +#if defined(WIN32CONSOLE) || defined(WIN32TILES) #include <windows.h> #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 |