From f39a809e667f6fc757de87d5bbd0d7991cbd31a1 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 25 Jun 2021 09:52:19 +0000 Subject: [PATCH] Eolite: set proper size of the copy buffer (thanks id_doczom for a found issue) git-svn-id: svn://kolibrios.org@8943 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/clipview/clipview.c | 6 ++++-- programs/cmm/eolite/Eolite.c | 6 +++--- programs/cmm/eolite/include/copy_and_delete.h | 3 +-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/programs/cmm/clipview/clipview.c b/programs/cmm/clipview/clipview.c index 41c14b367c..e9665a8cfb 100644 --- a/programs/cmm/clipview/clipview.c +++ b/programs/cmm/clipview/clipview.c @@ -116,7 +116,7 @@ void DrawWindowContent() $add ebx, 130 << 16 //BT_UNLOCK $int 64 - WriteText(GAP+10, LIST_Y + list.h + 14, 0x90, sc.button_text, "Delete last Delete all Unlock"); + WriteText(GAP+11, LIST_Y + list.h + 14, 0x90, sc.button_text, "Delete last Delete all Reset lock"); WriteText(GAP+12, LIST_Y - 23, 0x90, sc.work_text, T_COLUMNS_TITLE); WriteText(GAP+list.w - 88-14, LIST_Y - 23, 0x90, sc.work_text, T_COLUMN_VIEW); @@ -195,6 +195,8 @@ void ClipViewSelectListDraw() if (!list.count) WriteText(list.w / 2 + GAP - 60, list.h / 2 - 8 + LIST_Y, 0x90, 0x999999, "No data to show"); + //Show "<" and ">" buttons and a page number + //in case when there are items more than visible at once if (list.count > list.visible) { param[0] = list.first / list.visible + '0'; DefineButton(Form.cwidth-84-GAP, list.h + LIST_Y + 8, 25, 25, BT_LIST_LEFT, sc.button); //BT_LEFT @@ -206,7 +208,7 @@ void ClipViewSelectListDraw() $mov edx, #param; $mov edi, sc.work $add ecx, 0x40 << 24 - $add ecx, sc.work_text + $add ecx, sc.work_text //page number $int 64 } } diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 651b7a0002..e2233e7e20 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -3,9 +3,9 @@ // 70.5 - get volume info and label -#define ABOUT_TITLE "EOLITE 5 RC3" -#define TITLE_EOLITE "Eolite File Manager 5 RC3" -#define TITLE_KFM "Kolibri File Manager 2 RC3"; +#define ABOUT_TITLE "EOLITE 5 RC4" +#define TITLE_EOLITE "Eolite File Manager 5 RC4" +#define TITLE_KFM "Kolibri File Manager 2 RC4"; #define MEMSIZE 1024 * 250 #include "../lib/clipboard.h" diff --git a/programs/cmm/eolite/include/copy_and_delete.h b/programs/cmm/eolite/include/copy_and_delete.h index 048d7294be..0428e690e8 100644 --- a/programs/cmm/eolite/include/copy_and_delete.h +++ b/programs/cmm/eolite/include/copy_and_delete.h @@ -66,7 +66,7 @@ void CopyFilesListToClipboard(bool _cut_active) if (!selected_count) return; - size_buf = 4; + size_buf = 10; for (i=0; i