ide: IconDes fixes #1160, #1156, #1161

git-svn-id: svn://ultimatepp.org/upp/trunk@8648 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-07-08 07:13:42 +00:00
parent 7007b9646a
commit 7ed7cce801
4 changed files with 3798 additions and 3827 deletions

View file

@ -4,6 +4,7 @@ NAMESPACE_UPP
void IconDes::LeftDown(Point p, dword flags)
{
SetFocus();
if(!IsCurrent())
return;
SaveUndo();

View file

@ -74,9 +74,13 @@ void IconDes::Paint(Draw& w)
}
}
w.DrawImage(-spos.x, -spos.y, pb);
Rect r = pb.GetSize();
r.Offset(-spos);
w.DrawRect(r.right, 0, 1, r.bottom + 1, LtRed());
w.DrawRect(0, r.bottom, r.right, 1, LtRed());
m1refresh = Null;
if(IsPasting() && IsPasting())
DrawFrame(w, Rect(spos, Current().paste_image.GetSize()), LtRed);
DrawFrame(w, Rect(Current().pastepos - spos, Current().paste_image.GetSize()), LtRed);
return;
}
Point hotspot = image.GetHotSpot();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

File diff suppressed because it is too large Load diff