From 4854cd35f1afef43baa1c4018c7fb10664b3ea38 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 31 Aug 2018 12:17:04 -0400 Subject: [PATCH] super embarassing bugfix --- GUI/host/textthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index 8ee7192..b53d7f9 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -26,7 +26,7 @@ void TextThread::Flush() std::wstring sentence; { LOCK(ttMutex); - if (buffer.size() < 400 && (timestamp - GetTickCount() < 250 || buffer.size() == 0)) return; // TODO: let user change delay before sentence is flushed + if (buffer.size() < 400 && (GetTickCount() - timestamp < 250 || buffer.size() == 0)) return; // TODO: let user change delay before sentence is flushed if (status & USING_UNICODE) { sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2);