From 7021acd12bc0ae847b7e3f00a63ef2a5f8e89843 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 May 2015 20:39:24 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13888 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp index a2cd753099..9814f93024 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.cpp @@ -91,7 +91,7 @@ bool CLCDTextLog::Draw(CLCDGfx *pGfx) int iLine = (m_iPosition + iLinesDrawn) - iPosition; for(;iLinesDrawn < iLineCount && iLine < pEntry->iLines;iLine++) { - DrawTextEx(pGfx->GetHDC(), (LPTSTR)pEntry->vLines[iLine].c_str(), pEntry->vLines[iLine].size(), &rBoundary, m_iTextFormat, &m_dtp); + DrawTextEx(pGfx->GetHDC(), (LPTSTR)pEntry->vLines[iLine].c_str(), (int)pEntry->vLines[iLine].size(), &rBoundary, m_iTextFormat, &m_dtp); rBoundary.top += m_iFontHeight; rBoundary.bottom += m_iFontHeight; iLinesDrawn++; @@ -297,7 +297,7 @@ void CLCDTextLog::WrapMessage(CLogEntry *pEntry) if(NULL == hDC) return; - int iLen = strString.size(); + int iLen = (int)strString.size(); int i = 0; tstring strLine = _T(""); tstring strWord = _T(""); @@ -316,7 +316,7 @@ void CLCDTextLog::WrapMessage(CLogEntry *pEntry) { while(i= i && pos != i+iMaxChars) - iMaxChars = 1 + pos - i; + iMaxChars = 1 + (int)pos - i; // if the string doesnt fit, try to wrap the last word to the next line else if(iMaxChars < iLen - i || sizeLine.cx >= GetWidth()) { // find the last space in the line ( substract -1 from offset to ignore spaces as last chars ) pos = strString.rfind(_T(" "),i + iMaxChars -1 ); - if(pos != tstring::npos && pos != i && pos >= i & pos != i+iMaxChars) - iMaxChars = 1 + pos - i; + if(pos != tstring::npos && pos != i && pos >= i && pos != i+iMaxChars) + iMaxChars = 1 + (int)pos - i; } pEntry->vLines.push_back(strString.substr(i,iMaxChars)); i += iMaxChars; @@ -375,7 +375,7 @@ void CLCDTextLog::WrapMessage(CLogEntry *pEntry) */ DeleteObject(hDC); - pEntry->iLines = pEntry->vLines.size(); + pEntry->iLines = (int)pEntry->vLines.size(); } //************************************************************************ -- cgit v1.2.3