From 942caa5acefe1a1bb55ef312c7e69dbb22c17ea5 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 29 May 2020 10:54:04 +0000 Subject: [PATCH] Eolite 4.46: display cut git-svn-id: svn://kolibrios.org@7998 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/include/copy_and_delete.h | 11 +++ programs/cmm/eolite/include/translations.h | 4 +- programs/cmm/lib/gui.h | 9 ++- programs/cmm/lib/patterns/libimg_load_skin.h | 73 ------------------- 4 files changed, 18 insertions(+), 79 deletions(-) delete mode 100644 programs/cmm/lib/patterns/libimg_load_skin.h diff --git a/programs/cmm/eolite/include/copy_and_delete.h b/programs/cmm/eolite/include/copy_and_delete.h index e6a88aa469..7b9e16b7ab 100644 --- a/programs/cmm/eolite/include/copy_and_delete.h +++ b/programs/cmm/eolite/include/copy_and_delete.h @@ -87,8 +87,19 @@ void EventCopy(bool _cut_active) if (getElementSelectedFlag(i) == true) { sprintf(copy_buf_offset,"%s/%s",#path,items.get(i)*304+buf+72); copy_buf_offset += strlen(copy_buf_offset) + 1; + + setElementSelectedFlag(i, false); + + if (cut_active) { + if (i>=files.first) && (i=0) img_draw stdcall(icons32draw.image, x, y, 32, 32, 0, icon_n*32); -} - -:libimg_image icons16draw; -:void DrawIcon16(dword x,y, bg, icon_n) { - //load_dll(libimg, #libimg_init,1); - if (!icons16draw.image) { - icons16draw.load("/sys/icons16.png"); - icons16draw.replace_color(0xffFFFfff, bg); - icons16draw.replace_color(0xffCACBD6, MixColors(bg, 0, 220)); - } - if (icon_n>=0) img_draw stdcall(icons16draw.image, x, y, 16, 16, 0, icon_n*16); -} - -#endif \ No newline at end of file