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/CLCDLabel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp index c5fecce751..7415ea5567 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDLabel.cpp @@ -70,7 +70,7 @@ bool CLCDLabel::Draw(CLCDGfx *pGfx) vector::iterator iter = m_vLines.begin(); while(!m_vLines.empty() && iter != m_vLines.end()) { - DrawTextEx(pGfx->GetHDC(), (LPTSTR)(*iter).c_str(), (*iter).length(), &rBoundary, m_iTextFormat, &m_dtp); + DrawTextEx(pGfx->GetHDC(), (LPTSTR)(*iter).c_str(), (int)(*iter).length(), &rBoundary, m_iTextFormat, &m_dtp); rBoundary.top += m_iFontHeight; iter++; } @@ -118,7 +118,7 @@ void CLCDLabel::SetWordWrap(bool bEnable) //************************************************************************ void CLCDLabel::UpdateCutOffIndex() { - int iLen = m_strText.length(); + int iLen = (int)m_strText.length(); m_vLines.clear(); @@ -158,7 +158,7 @@ void CLCDLabel::UpdateCutOffIndex() 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 = m_strText.rfind(_T(" "),i + iMaxChars -1 ); if(pos != tstring::npos && pos != i && pos >= i && pos != i+iMaxChars) - iMaxChars = 1 + pos - i; + iMaxChars = 1 + (int)pos - i; } if(m_vLines.size() == iAvailableLines-1) @@ -195,7 +195,7 @@ void CLCDLabel::UpdateCutOffIndex() int *piWidths = new int[(*--m_vLines.end()).length()]; int iMaxChars = 0; - GetTextExtentExPoint(hDC,(*--m_vLines.end()).c_str(),(*--m_vLines.end()).length(),iWidth,&iMaxChars,piWidths,&sizeLine); + GetTextExtentExPoint(hDC,(*--m_vLines.end()).c_str(),(int)(*--m_vLines.end()).length(),iWidth,&iMaxChars,piWidths,&sizeLine); if(iMaxChars < (*--m_vLines.end()).length()) { -- cgit v1.2.3