OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2966970
)
fix bug with fonts and hilighted word width
author
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 1 Aug 2001 12:39:40 +0000
(12:39 +0000)
committer
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 1 Aug 2001 12:39:40 +0000
(12:39 +0000)
Src/editlib/ccrystaltextview.cpp
patch
|
blob
|
history
diff --git
a/Src/editlib/ccrystaltextview.cpp
b/Src/editlib/ccrystaltextview.cpp
index
8f9fb67
..
ecfa754
100644
(file)
--- a/
Src/editlib/ccrystaltextview.cpp
+++ b/
Src/editlib/ccrystaltextview.cpp
@@
-850,7
+850,7
@@
DrawLineHelperImpl (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip,
*/
VERIFY (pdc->ExtTextOut (ptOrigin.x, ptOrigin.y, ETO_CLIPPED, &rcClip, line, nCount, NULL));
}
-
ptOrigin.x += GetCharWidth () * line.GetLength ()
;
+
ptOrigin.x += pdc->GetOutputTextExtent(line).cx
;
}
}