From e8ed0cae6fdbe41ee49b7ec25a73dfd50c0ecbf4 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 30 Jul 2015 23:11:23 +0000 Subject: [PATCH] Eolite 2.85: highlight current device git-svn-id: svn://kolibrios.org@5633 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 5 +++-- programs/cmm/eolite/include/left_panel.h | 26 ++++++++++++++++-------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index a53ea607de..7d4e1352fb 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -103,8 +103,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir enum { CREATE_FILE=1, CREATE_FOLDER, RENAME_ITEM }; //NewElement -#define TITLE "Eolite File Manager v2.84" -#define ABOUT_TITLE "Eolite v2.84" +#define TITLE "Eolite File Manager v2.85" +#define ABOUT_TITLE "Eolite v2.85" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; @@ -812,6 +812,7 @@ void Open_Dir(dword dir_path, redraw){ WriteText(sorting_arrow_x,45,0x80,sc.work_graph,"\x19"); if (redraw!=ONLY_SHOW) Sorting(); if (redraw!=ONLY_OPEN)&&(!_not_draw) List_ReDraw(); + DrawSystemDiscs(); } if (files.count==-1) && (redraw!=ONLY_OPEN) {files.visible=files.count=0; if(!_not_draw)List_ReDraw();} } diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index 90821d1123..cee72445c6 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -112,14 +112,14 @@ void GetSystemDiscs() void DrawSystemDiscs() { char dev_name[15], disc_name[100]; - int i, dev_icon; + int i, dev_icon, pos_y; - Tip(56, T_DEVICES, 55, "="); - for (i=0; i<20; i++) DeleteButton(100+i); + for (i=disc_num; i<30; i++) DeleteButton(100+i); for (i=0;i