mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
uppsrc: OLD_VALUE completely removed, Core/Rpc: Now supports Json parameters and return values
git-svn-id: svn://ultimatepp.org/upp/trunk@5356 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6b23e0cc78
commit
db03281dfb
29 changed files with 98 additions and 1818 deletions
|
|
@ -11,7 +11,7 @@ void DrawTextEllipsis(Draw& w, int x, int y, int cx, const wchar *text, const ch
|
|||
int dtl = 0;
|
||||
int el = 0;
|
||||
for(s = ellipsis; *s; s++) {
|
||||
dtl += f[(byte)*s];
|
||||
dtl += f[*s];
|
||||
el++;
|
||||
}
|
||||
int l = 0;
|
||||
|
|
@ -20,7 +20,7 @@ void DrawTextEllipsis(Draw& w, int x, int y, int cx, const wchar *text, const ch
|
|||
l += f[(byte) text[i]];
|
||||
if(l > cx) {
|
||||
while(l + dtl > cx && i > 0) {
|
||||
l -= f[(byte) text[i]];
|
||||
l -= f[text[i]];
|
||||
i--;
|
||||
}
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue