diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 1bf1e43e77..6cd1ec0532 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -728,7 +728,7 @@ void Line_ReDraw(dword bgcol, filenum){ } else { - if (!strncmp(file_name_off,"..",3)) ext1=""; else { + if (!strcmp(file_name_off,"..")) ext1=""; else { ext1=""; WriteTextCenter(files.x+files.w-140, files.text_y+y+1, 72, 0, ext1); } diff --git a/programs/cmm/eolite/include/icons.h b/programs/cmm/eolite/include/icons.h index 51fddf84b1..5b962a5312 100644 --- a/programs/cmm/eolite/include/icons.h +++ b/programs/cmm/eolite/include/icons.h @@ -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: // - 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 }