fix a glitch that caused a dark game area...

...in the first dialog of the tutorial

there should be a cleaner way to do this, though
This commit is contained in:
Martin Renold 2007-02-17 12:13:39 +00:00
parent 9ec78d7bbc
commit 9d208abad6

View file

@ -571,6 +571,10 @@ void display::scroll_to_tile(int x, int y, SCROLL_TYPE scroll_type, bool check_f
num_moves = 1;
}
// this is needed for initially drawing all tiles before a dialog box
// FIXME: this is bad, for most scrolls a needless performance penalty.
invalidate_all();
for(int i = 0; i != num_moves; ++i) {
events::pump();