diff options
-rw-r--r-- | tipper/popwin.cpp | 14 | ||||
-rw-r--r-- | tipper/tipper.mdsp | 6 | ||||
-rw-r--r-- | tipper/version.h | 2 |
3 files changed, 13 insertions, 9 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index ccac277..bc570b5 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -134,14 +134,16 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa int buff_pos, i = 0, size = _tcslen(pwd->clcit.text); bool top_message = false; - if(swzText[0] != _T('<')) { - while(swzText[i] != _T('\n') && swzText[i] != _T('\r') && i < size && i < 2048) { - buff[i] = swzText[i]; + while(i < size && swzText[i] != _T('<')) { + buff_pos = 0; + while(swzText[i] != _T('\n') && swzText[i] != _T('\r') && i < size && buff_pos < 2048) { + if(swzText[i] != _T('\t')) + buff[buff_pos++] = swzText[i]; i++; } - buff[i] = 0; + buff[buff_pos] = 0; - if(_tcslen(buff)) { + if(buff_pos) { pwd->rows = (RowData *)realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1)); pwd->rows[pwd->row_count].line_above = false; pwd->rows[pwd->row_count].value_newline = true; @@ -150,6 +152,8 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa pwd->row_count++; top_message = true; } + while(i < size && (swzText[i] == _T('\n') || swzText[i] == _T('\r'))) + i++; } // parse bold bits into labels and the rest into items diff --git a/tipper/tipper.mdsp b/tipper/tipper.mdsp index db8fb47..01d8952 100644 --- a/tipper/tipper.mdsp +++ b/tipper/tipper.mdsp @@ -104,7 +104,7 @@ extraResourceOptions= 1=resource.rc
[Other]
[History]
-popwin.cpp,2562
-tipper.cpp,1269
message_pump.cpp,4377
-version.h,150
+tipper.cpp,1265
+popwin.cpp,2562
+version.h,820
diff --git a/tipper/version.h b/tipper/version.h index 7c287b9..28f3f31 100644 --- a/tipper/version.h +++ b/tipper/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 4
#define __RELEASE_NUM 0
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|