ide: IconDes improvements, .icons

This commit is contained in:
Mirek Fidler 2024-08-10 11:57:34 +02:00
parent 955418eedf
commit 42eb3ab584
4 changed files with 942 additions and 88 deletions

File diff suppressed because it is too large Load diff

View file

@ -64,6 +64,7 @@ void IconDes::DoCopy()
if(!IsCurrent())
return;
WriteClipboardImage(IsPasting() ? Current().paste_image : Copy(SelectionRect()));
AppendClipboardText(Current().name);
}
void IconDes::DoCut()

View file

@ -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];

View file

@ -248,7 +248,7 @@ void IconDes::InsertPaste()
Exclamation("Clipboard does not contain an image.");
return;
}
ImageInsert("", m);
ImageInsert(ReadClipboardText(), m);
EditImage();
}