diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 04:07:07 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 04:07:07 +0000 |
commit | af3cd3ff34ef5da884b2c673afe1321f0cf372e7 (patch) | |
tree | a574c2155f571f216f29c44b29e333ea320322a6 /crawl-ref/source/stuff.cc | |
parent | 71ed1a7fd6819916d79d194126c061ac1f087b11 (diff) | |
download | crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.tar.gz crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.zip |
Large tiles-related changes. Platform-specific rendering removed and replaced with SDL/OpenGL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 3406decaa9..61784732d7 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -638,9 +638,7 @@ void cio_init() { crawl_state.io_inited = true; -#if defined(USE_TILE) - libgui_init(); -#elif defined(UNIX) +#if defined(UNIX) && !defined(USE_TILE) unixcurses_startup(); #endif @@ -654,6 +652,10 @@ void cio_init() crawl_view.init_geometry(); +#ifdef USE_TILE + tiles.resize(); +#endif + if (Options.char_set == CSET_UNICODE && !crawl_state.unicode_ok) { crawl_state.add_startup_error( @@ -668,7 +670,7 @@ void cio_cleanup() return; #if defined(USE_TILE) - libgui_shutdown(); + tiles.shutdown(); #elif defined(UNIX) unixcurses_shutdown(); #endif |