Rev 6805 | Rev 6885 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6805 | Rev 6806 | ||
---|---|---|---|
Line 706... | Line 706... | ||
706 | if (!strcmp(#path,"/")) sprintf(#file_path,"%s%s",#path,file_name_off); |
706 | if (!strcmp(#path,"/")) sprintf(#file_path,"%s%s",#path,file_name_off); |
707 | else sprintf(#file_path,"%s/%s",#path,file_name_off); |
707 | else sprintf(#file_path,"%s/%s",#path,file_name_off); |
708 | if (text_col==0xA6A6B7) text_col=0xFFFFFF; |
708 | if (text_col==0xA6A6B7) text_col=0xFFFFFF; |
709 | } |
709 | } |
710 | if (file.selected) text_col=0xFF0000; |
710 | if (file.selected) text_col=0xFF0000; |
711 | if (label.size.pt==9) || (!label.font) |
711 | if (kfont.size.pt==9) || (!kfont.font) |
712 | { |
712 | { |
713 | if (Form.width>=480) |
713 | if (Form.width>=480) |
714 | { |
714 | { |
715 | FileShow.start_x = files.x + 23; |
715 | FileShow.start_x = files.x + 23; |
716 | FileShow.font_color = text_col; |
716 | FileShow.font_color = text_col; |
Line 722... | Line 722... | ||
722 | } |
722 | } |
723 | } |
723 | } |
724 | else |
724 | else |
725 | { |
725 | { |
726 | strcpy(#label_file_name, file_name_off); |
726 | strcpy(#label_file_name, file_name_off); |
727 | if (label.getsize(label.size.pt, #label_file_name) + 141 + 26 > files.w) |
727 | if (kfont.getsize(kfont.size.pt, #label_file_name) + 141 + 26 > files.w) |
728 | { |
728 | { |
729 | while (label.getsize(label.size.pt, #label_file_name) + 141 + 26 > files.w) { |
729 | while (kfont.getsize(kfont.size.pt, #label_file_name) + 141 + 26 > files.w) { |
730 | ESBYTE[#label_file_name+strlen(#label_file_name)-1] = NULL; |
730 | ESBYTE[#label_file_name+strlen(#label_file_name)-1] = NULL; |
731 | } |
731 | } |
732 | strcpy(#label_file_name+strlen(#label_file_name)-2, "..."); |
732 | strcpy(#label_file_name+strlen(#label_file_name)-2, "..."); |
733 | } |
733 | } |
734 | label.WriteIntoWindow(files.x + 23, files.item_h - label.height / 2 + y, bgcol, text_col, label.size.pt, #label_file_name); |
734 | kfont.WriteIntoWindow(files.x + 23, files.item_h - kfont.height / 2 + y, bgcol, text_col, kfont.size.pt, #label_file_name); |
735 | } |
735 | } |
736 | DrawBar(files.x+files.w-141,y,1,files.item_h,system.color.work); //gray line 1 |
736 | DrawBar(files.x+files.w-141,y,1,files.item_h,system.color.work); //gray line 1 |
737 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
737 | DrawBar(files.x+files.w-68,y,1,files.item_h,system.color.work); //gray line 2 |
738 | } |
738 | } |