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
This commit is contained in:
Kirill Lipatov (Leency) 2021-06-25 09:52:19 +00:00
parent ac968ca8a5
commit f39a809e66
3 changed files with 8 additions and 7 deletions

View File

@ -116,7 +116,7 @@ void DrawWindowContent()
$add ebx, 130 << 16 //BT_UNLOCK $add ebx, 130 << 16 //BT_UNLOCK
$int 64 $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+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); 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, if (!list.count) WriteText(list.w / 2 + GAP - 60,
list.h / 2 - 8 + LIST_Y, 0x90, 0x999999, "No data to show"); 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) { if (list.count > list.visible) {
param[0] = list.first / list.visible + '0'; 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 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 edx, #param;
$mov edi, sc.work $mov edi, sc.work
$add ecx, 0x40 << 24 $add ecx, 0x40 << 24
$add ecx, sc.work_text $add ecx, sc.work_text //page number
$int 64 $int 64
} }
} }

View File

@ -3,9 +3,9 @@
// 70.5 - get volume info and label // 70.5 - get volume info and label
#define ABOUT_TITLE "EOLITE 5 RC3" #define ABOUT_TITLE "EOLITE 5 RC4"
#define TITLE_EOLITE "Eolite File Manager 5 RC3" #define TITLE_EOLITE "Eolite File Manager 5 RC4"
#define TITLE_KFM "Kolibri File Manager 2 RC3"; #define TITLE_KFM "Kolibri File Manager 2 RC4";
#define MEMSIZE 1024 * 250 #define MEMSIZE 1024 * 250
#include "../lib/clipboard.h" #include "../lib/clipboard.h"

View File

@ -66,7 +66,7 @@ void CopyFilesListToClipboard(bool _cut_active)
if (!selected_count) return; if (!selected_count) return;
size_buf = 4; size_buf = 10;
for (i=0; i<files.count; i++) for (i=0; i<files.count; i++)
{ {
if (getElementSelectedFlag(i) == true) { if (getElementSelectedFlag(i) == true) {
@ -75,7 +75,6 @@ void CopyFilesListToClipboard(bool _cut_active)
size_buf += path_len + 1; size_buf += path_len + 1;
} }
} }
size_buf += 20;
buff_data = malloc(size_buf); buff_data = malloc(size_buf);
ESDWORD[buff_data] = size_buf; ESDWORD[buff_data] = size_buf;
ESDWORD[buff_data+4] = SLOT_DATA_TYPE_RAW; ESDWORD[buff_data+4] = SLOT_DATA_TYPE_RAW;