mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
ide: Mac improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@12784 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1b6c34e80f
commit
78341d6a6d
1 changed files with 3 additions and 3 deletions
|
|
@ -577,8 +577,8 @@ void Ide::MakeIcon() {
|
|||
WString mp2;
|
||||
Size sz2;
|
||||
if(sz.cx > isz.cx && mp.GetCount() > 2) {
|
||||
mp2 = mp.Mid(1);
|
||||
mp.Trim(1);
|
||||
mp2 = mp.Mid(3);
|
||||
mp.Trim(3);
|
||||
cx1 = GetTextSize(mp, font).cx;
|
||||
while(fh > DPI(5)) {
|
||||
font2 = StdFont(fh);
|
||||
|
|
@ -590,7 +590,7 @@ void Ide::MakeIcon() {
|
|||
fh--;
|
||||
}
|
||||
}
|
||||
int x = (isz.cx - sz.cx) / 2;
|
||||
int x = max((isz.cx - sz.cx) / 2, 0);
|
||||
int y = isz.cy - sz.cy;
|
||||
idraw.DrawRect(x, y, sz.cx, sz.cy, White);
|
||||
mdraw.DrawRect(x, y, sz.cx, sz.cy, White);
|
||||
|
|
|
|||
Loading…
Reference in a new issue