git-svn-id: svn://kolibrios.org@7311 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2018-08-11 22:49:29 +00:00
parent 64951a7689
commit af22e4a7b6
2 changed files with 14 additions and 3 deletions

View File

@ -132,6 +132,7 @@ byte cmd_free=0;
void main() void main()
{ {
dword files_y = 0;
dword id; dword id;
byte count_sl = 0; byte count_sl = 0;
signed x_old, y_old, dif_x, dif_y, adif_x, adif_y; signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
@ -529,8 +530,17 @@ void main()
} }
break; break;
default: default:
IF( SystemDiscs.Get() ) DrawDeviceAndActionsLeftPanel(); if ( SystemDiscs.Get() )
Update_Dir(#path,WITH_REDRAW); {
if (two_panels.checked)
{
//SystemDiscs.Draw();
//ActionsDraw();
DrawFilePanels();
}
else DrawDeviceAndActionsLeftPanel();
}
Update_Dir(#path,WITH_REDRAW);
} }

View File

@ -101,11 +101,12 @@ byte _SystemDiscs::Get()
devbuf = malloc(10000); devbuf = malloc(10000);
ReadDir(19, devbuf, "/"); ReadDir(19, devbuf, "/");
dev_num = EBX; dev_num = EBX;
if (dev_num != __countSysDiscs) IF (dev_num != __countSysDiscs)
{ {
__countSysDiscs = dev_num; __countSysDiscs = dev_num;
ret = 0xFF; ret = 0xFF;
} }
ELSE ret = 0;
for (i1=0; i1<dev_num; i1++) for (i1=0; i1<dev_num; i1++)
{ {
sprintf(#dev_name,"/%s",i1*304+ devbuf+72); sprintf(#dev_name,"/%s",i1*304+ devbuf+72);