diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-08 03:22:46 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-08 03:22:46 +0000 |
commit | 6980d1d1465c11f3afaf2e0c29503990ad3fb906 (patch) | |
tree | 76a8b70779735baba9a9f2a4c9c0a54bbec96a36 /crawl-ref/source/tilesdl.h | |
parent | cdd74d0b4618ad1f8f02ee18036283c6c2214b3d (diff) | |
download | crawl-ref-6980d1d1465c11f3afaf2e0c29503990ad3fb906.tar.gz crawl-ref-6980d1d1465c11f3afaf2e0c29503990ad3fb906.zip |
Tiles performance improvements. redraw() is not needlessly done three times as often as it should.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7776 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.h')
-rw-r--r-- | crawl-ref/source/tilesdl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilesdl.h b/crawl-ref/source/tilesdl.h index 735189c95b..258ea5b3a3 100644 --- a/crawl-ref/source/tilesdl.h +++ b/crawl-ref/source/tilesdl.h @@ -106,6 +106,7 @@ public: void clear_minimap(); void update_inventory(); + void set_need_redraw(); void redraw(); void place_cursor(cursor_type type, const coord_def &gc); @@ -134,6 +135,7 @@ protected: SDL_Surface* m_context; bool m_fullscreen; + bool m_need_redraw; enum LayerID { |