diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-09 20:45:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-09 20:45:04 +0300 |
commit | f3ff9ad5341bb0b0a0453e61a2d419e8c02f14b0 (patch) | |
tree | 40b4468a2a24643b2640a43a6af6f0d1242c8219 /plugins/Scriver/src/chat/log.cpp | |
parent | e5fdfcde3880eb7edaf573fb883dd4ef86972082 (diff) |
cosmetic fixes
Diffstat (limited to 'plugins/Scriver/src/chat/log.cpp')
-rw-r--r-- | plugins/Scriver/src/chat/log.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Scriver/src/chat/log.cpp b/plugins/Scriver/src/chat/log.cpp index 0499847dac..87cb9fc8f1 100644 --- a/plugins/Scriver/src/chat/log.cpp +++ b/plugins/Scriver/src/chat/log.cpp @@ -33,8 +33,6 @@ void CChatRoomDlg::Log_StreamInEvent(LOGINFO* lin, BOOL bRedraw) if (!bRedraw && (m_si->iType == GCW_CHATROOM || m_si->iType == GCW_PRIVMESS) && m_bFilterEnabled && !(m_iLogFilterFlags & lin->iType))
return;
- BOOL bFlag = FALSE;
-
LOGSTREAMDATA streamData;
memset(&streamData, 0, sizeof(streamData));
streamData.hwnd = m_log.GetHwnd();
@@ -74,9 +72,10 @@ void CChatRoomDlg::Log_StreamInEvent(LOGINFO* lin, BOOL bRedraw) WPARAM wp = bRedraw ? SF_RTF : SFF_SELECTION | SF_RTF;
// get the number of pixels per logical inch
+ bool bFlag = false;
if (bRedraw) {
m_log.SendMsg(WM_SETREDRAW, FALSE, 0);
- bFlag = TRUE;
+ bFlag = true;
}
// stream in the event(s)
@@ -85,9 +84,7 @@ void CChatRoomDlg::Log_StreamInEvent(LOGINFO* lin, BOOL bRedraw) m_log.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// do smileys
- if (g_dat.smileyAddInstalled && (bRedraw || (lin->ptszText &&
- lin->iType != GC_EVENT_JOIN && lin->iType != GC_EVENT_NICK && lin->iType != GC_EVENT_ADDSTATUS && lin->iType != GC_EVENT_REMOVESTATUS)))
- {
+ if (g_dat.smileyAddInstalled && (bRedraw || (lin->ptszText && lin->iType != GC_EVENT_JOIN && lin->iType != GC_EVENT_NICK && lin->iType != GC_EVENT_ADDSTATUS && lin->iType != GC_EVENT_REMOVESTATUS))) {
newsel.cpMax = -1;
newsel.cpMin = sel.cpMin;
if (newsel.cpMin < 0)
|