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