Rev 8789 | Rev 8826 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8789 | Rev 8821 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021 |
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021 |
2 | //GNU GPL license. |
2 | //GNU GPL license. |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line 4... | ||
4 | // 70.5 - get volume info and label |
4 | // 70.5 - get volume info and label |
5 | 5 | ||
Line 6... | Line 6... | ||
6 | #define TITLE "Eolite File Manager 4.66" |
6 | #define TITLE "Eolite File Manager 4.70" |
7 | #define ABOUT_TITLE "EOLITE 4.66" |
7 | #define ABOUT_TITLE "EOLITE 4.70" |
8 | 8 | ||
Line 792... | Line 792... | ||
792 | attr = ESDWORD[file_offet]; |
792 | attr = ESDWORD[file_offet]; |
793 | file.selected = ESBYTE[file_offet+7]; |
793 | file.selected = ESBYTE[file_offet+7]; |
794 | file.sizelo = ESDWORD[file_offet+32]; |
794 | file.sizelo = ESDWORD[file_offet+32]; |
795 | file.sizehi = ESDWORD[file_offet+36]; |
795 | file.sizehi = ESDWORD[file_offet+36]; |
796 | file_name_off = file_offet+40; |
796 | file_name_off = file_offet+40; |
797 | sprintf(#full_path,"%s/%s",#path,file_name_off); |
- | |
Line 798... | Line 797... | ||
798 | 797 | ||
799 | if (! TestBit(attr, 4) ) //file or folder? |
798 | if (! TestBit(attr, 4) ) //file or folder? |
800 | { |
799 | { |
801 | ext1 = strrchr(file_name_off,'.') + file_name_off; |
800 | ext1 = strrchr(file_name_off,'.') + file_name_off; |
Line 852... | Line 851... | ||
852 | } |
851 | } |
853 | kfont.WriteIntoWindow(files.x + icon_size+7, files.item_h - kfont.height / 2 + y, |
852 | kfont.WriteIntoWindow(files.x + icon_size+7, files.item_h - kfont.height / 2 + y, |
854 | bgcol, text_col, kfont.size.pt, #label_file_name); |
853 | bgcol, text_col, kfont.size.pt, #label_file_name); |
855 | } |
854 | } |
856 | if (bgcol == col.selec_inactive) DrawWideRectangle(files.x+2, y, files.w-4, files.item_h, 2, 0x92B1D9); |
855 | if (bgcol == col.selec_inactive) DrawWideRectangle(files.x+2, y, files.w-4, files.item_h, 2, 0x92B1D9); |
- | 856 | ||
- | 857 | sprintf(#full_path,"%s/%s",#path,file_name_off); |
|
857 | DrawIconByExtension(#full_path, ext1, files.x+4, icon_y, bgcol); |
858 | DrawIconByExtension(#full_path, ext1, files.x+4, icon_y, bgcol); |
858 | } |
859 | } |
Line 859... | Line 860... | ||
859 | 860 |