mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
*CtrlLib: LineEdit long line fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@2219 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2c2b6e02cc
commit
5d1f4596d4
1 changed files with 2 additions and 3 deletions
|
|
@ -148,8 +148,8 @@ void LineEdit::Paint0(Draw& w) {
|
|||
int ll = cjk ? 2 * l : l;
|
||||
LLOG("Highlight -> paper[" << q << "] = " << h.paper);
|
||||
int x = gp * fsz.cx - scx;
|
||||
int xx = x + (gp + ll) * fsz.cx - scx;
|
||||
if(max(x, 0) < min(xx, sz.cx)) {
|
||||
int xx = x + (gp + ll) * fsz.cx;
|
||||
if(max(x, 0) < min(xx, sz.cx))
|
||||
if(pass == 0) {
|
||||
w.DrawRect(x, y, fsz.cx * ll, fsz.cy, h.paper);
|
||||
if(bordercolumn > 0 && bordercolumn >= gp && bordercolumn < gp + ll)
|
||||
|
|
@ -164,7 +164,6 @@ void LineEdit::Paint0(Draw& w) {
|
|||
y + fascent - h.font.Info().GetAscent(),
|
||||
~txt + q, h.font, h.ink, l, cjk ? dx2 : dx);
|
||||
}
|
||||
}
|
||||
q = p;
|
||||
gp += ll;
|
||||
if(x > sz.cx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue