Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
gui/command.cpp
gui/command.cpp
.vs/
12 changes: 11 additions & 1 deletion gui/TextBuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#include "TextBuffer.h"

DWORD WINAPI FlushThread(LPVOID lParam); // window.cpp

DWORD WINAPI FlushThread(LPVOID lParam)
{
TextBuffer* t = (TextBuffer*)lParam;
while (t->Running())
{
t->Flush();
Sleep(10);
}
return 0;
}

TextBuffer::TextBuffer(HWND edit) : hThread(IthCreateThread(FlushThread, (DWORD)this)),
hEdit(edit),
Expand Down
11 changes: 0 additions & 11 deletions gui/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,14 +853,3 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
}
return 0;
}

DWORD WINAPI FlushThread(LPVOID lParam)
{
TextBuffer* t = (TextBuffer*)lParam;
while (t->Running())
{
t->Flush();
Sleep(10);
}
return 0;
}
1 change: 1 addition & 0 deletions todos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test with english encoding.
11 changes: 0 additions & 11 deletions vnr/ccutil/ccutil.pri

This file was deleted.

Loading