Eolite - small fix

git-svn-id: svn://kolibrios.org@7149 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2018-02-07 15:43:26 +00:00
parent ab25bf2d8d
commit f2b277cf00
2 changed files with 13 additions and 13 deletions

View File

@ -728,7 +728,7 @@ void Line_ReDraw(dword bgcol, filenum){
}
else
{
if (!strncmp(file_name_off,"..",3)) ext1="<up>"; else {
if (!strcmp(file_name_off,"..")) ext1="<up>"; else {
ext1="<DIR>";
WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, 0, ext1);
}

View File

@ -32,18 +32,18 @@ void DrawIconByExtension(dword file_path, extension, xx, yy, fairing_color)
void IconFairing(dword filenum, x,y, color)
{
switch(filenum)
//0 = folder
//22 = forder with up arrow
if (filenum == 0) || (filenum == 22)
{
case 0: //folder
case 22: //<up>
DrawBar(x+7,y+1,8,2,color);
IF (filenum==22) PutPixel(x+10,y+2,0x1A7B17); //green arrow part
DrawBar(x,y+14,15,2,color);
PutPixel(x,y+1,color);
PutPixel(x+6,y+1,color);
PutPixel(x+14,y+3,color);
PutPixel(x,y+13,color);
PutPixel(x+14,y+13,color);
return;
DrawBar(x+7,y+1,8,2,color);
DrawBar(x,y+14,15,2,color);
PutPixel(x,y+1,color);
PutPixel(x+6,y+1,color);
PutPixel(x+14,y+3,color);
PutPixel(x,y+13,color);
PutPixel(x+14,y+13,color);
debugi(filenum);
}
if (filenum == 22) PutPixel(x+10,y+2,0x1A7B17); //green arrow part
}