summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 14:44:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 14:44:20 +0000
commit2da58bcd0b9f3723a7ec28826c63013c0543e2f4 (patch)
treee93af5d66bb3039c651e04d389b2cca270cd3b9d /crawl-ref/source/view.cc
parent1f5d3c03e556bea1612d2692cfa2762d809eca16 (diff)
downloadcrawl-ref-2da58bcd0b9f3723a7ec28826c63013c0543e2f4.tar.gz
crawl-ref-2da58bcd0b9f3723a7ec28826c63013c0543e2f4.zip
[1826006] Fix for DOS colour highlights flooding the screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2977 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 889c46a503..2c0957d092 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -4194,6 +4194,10 @@ void view_update_at(const coord_def &pos)
gotoxy(vp.x, vp.y);
textattr(flash_colour? real_colour(flash_colour) : colour);
putwch(ch);
+
+ // Force colour back to normal, else clrscr() will flood screen
+ // with this colour on DOS.
+ textattr(LIGHTGREY);
}
bool view_update()