diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-11-03 14:36:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-11-03 14:36:41 +0000 |
commit | 8e334c51bafae73d9cf3de9a0412c7a440913eb4 (patch) | |
tree | b80ece27abeb65aa012aadcce37bdd4c29fe4d92 /plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp | |
parent | c1cb2e8f9b15913b0dd55af2995852da7593cb44 (diff) |
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
Diffstat (limited to 'plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp')
-rw-r--r-- | plugins/MirandaG15/LCDFramework/src/CLCDInput.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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];
|