From af22e4a7b620704c31346862704e5af44cfbd4b9 Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Sat, 11 Aug 2018 22:49:29 +0000 Subject: [PATCH] Fixed git-svn-id: svn://kolibrios.org@7311 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 14 ++++++++++++-- programs/cmm/eolite/include/left_panel.h | 3 ++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 0cd8056bfa..2967c3a887 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -132,6 +132,7 @@ byte cmd_free=0; void main() { + dword files_y = 0; dword id; byte count_sl = 0; signed x_old, y_old, dif_x, dif_y, adif_x, adif_y; @@ -529,8 +530,17 @@ void main() } break; default: - IF( SystemDiscs.Get() ) DrawDeviceAndActionsLeftPanel(); - Update_Dir(#path,WITH_REDRAW); + if ( SystemDiscs.Get() ) + { + if (two_panels.checked) + { + //SystemDiscs.Draw(); + //ActionsDraw(); + DrawFilePanels(); + } + else DrawDeviceAndActionsLeftPanel(); + } + Update_Dir(#path,WITH_REDRAW); } diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index effffd1f55..49c627d627 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -101,11 +101,12 @@ byte _SystemDiscs::Get() devbuf = malloc(10000); ReadDir(19, devbuf, "/"); dev_num = EBX; - if (dev_num != __countSysDiscs) + IF (dev_num != __countSysDiscs) { __countSysDiscs = dev_num; ret = 0xFF; } + ELSE ret = 0; for (i1=0; i1