From 8e334c51bafae73d9cf3de9a0412c7a440913eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 3 Nov 2013 14:36:41 +0000 Subject: MirandaG15 now works correctly (thanks to Intri for patch) and cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp') diff --git a/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp b/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp index ab5350ec86..d482099de3 100644 --- a/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp +++ b/plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp @@ -689,7 +689,7 @@ void CLCDInput::UpdateOffsets(int iModified) } } - iChar += iMaxChars; + //iChar += iMaxChars; if(m_strText[iChar] == '\n' || sizeLine.cx > GetWidth()) { @@ -755,11 +755,13 @@ void CLCDInput::UpdateOffsets(int iModified) } break; } + + iChar += iMaxChars; } // Update line's width if(iMaxChars > 0) { - if(m_strText[iChar] == '\n' && iMaxChars >= 2) + if(m_strText[iChar-1] == '\n' && iMaxChars >= 2) m_vLineOffsets[iLine].iWidth = piWidths[iMaxChars-2]; else m_vLineOffsets[iLine].iWidth = piWidths[iMaxChars-1]; -- cgit v1.2.3