mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
super embarassing bugfix
This commit is contained in:
parent
4f1bc5a9b2
commit
4854cd35f1
@ -26,7 +26,7 @@ void TextThread::Flush()
|
|||||||
std::wstring sentence;
|
std::wstring sentence;
|
||||||
{
|
{
|
||||||
LOCK(ttMutex);
|
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)
|
if (status & USING_UNICODE)
|
||||||
{
|
{
|
||||||
sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2);
|
sentence = std::wstring((wchar_t*)buffer.data(), buffer.size() / 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user