summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 15:53:10 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 15:53:10 +0000
commit1d1741d3184fa338c84538b2d3d1ad094bddad86 (patch)
treec74cc3c6350c13a95e4f186a9937579629d27473 /crawl-ref/source/libw32c.cc
parent918d9df900b861c8b34b7bb4be9f7d53538e7b47 (diff)
downloadcrawl-ref-1d1741d3184fa338c84538b2d3d1ad094bddad86.tar.gz
crawl-ref-1d1741d3184fa338c84538b2d3d1ad094bddad86.zip
Flush messages, just in case, in the two definitions of getch_ck() that
don't use getch(), for Tiles and win32. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9280 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index af2fcad235..40d94ea467 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -68,6 +68,7 @@ REVISION("$Rev$");
#include "cio.h"
#include "defines.h"
#include "libutil.h"
+#include "message.h"
#include "state.h"
#include "stuff.h"
#include "version.h"
@@ -835,6 +836,7 @@ static int w32_proc_mouse_event(const MOUSE_EVENT_RECORD &mer)
int getch_ck(void)
{
+ flush_prev_message();
INPUT_RECORD ir;
DWORD nread;
int key = 0;