mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ide: IconDes improvements, .icons
This commit is contained in:
parent
955418eedf
commit
42eb3ab584
4 changed files with 942 additions and 88 deletions
|
|
@ -64,6 +64,7 @@ void IconDes::DoCopy()
|
|||
if(!IsCurrent())
|
||||
return;
|
||||
WriteClipboardImage(IsPasting() ? Current().paste_image : Copy(SelectionRect()));
|
||||
AppendClipboardText(Current().name);
|
||||
}
|
||||
|
||||
void IconDes::DoCut()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ void FloodFill(const Image& src, ImageBuffer& ib, RGBA fill, Point p, const Eq&
|
|||
Buffer<byte> filled(isz.cx * isz.cy, 0);
|
||||
auto Filled = [&](int y) -> byte * { return ~filled + y * isz.cx; };
|
||||
|
||||
RGBA color = ib[p.y][p.x];
|
||||
RGBA color = src[p.y][p.x];
|
||||
while(stack.GetCount()) {
|
||||
Point p = stack.Pop();
|
||||
const RGBA *l = src[p.y];
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ void IconDes::InsertPaste()
|
|||
Exclamation("Clipboard does not contain an image.");
|
||||
return;
|
||||
}
|
||||
ImageInsert("", m);
|
||||
ImageInsert(ReadClipboardText(), m);
|
||||
EditImage();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue