Rev 6803 | Rev 6806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6803 | Rev 6805 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #include "..\lib\mem.h" |
12 | #include "..\lib\mem.h" |
13 | #include "..\lib\file_system.h" |
13 | #include "..\lib\file_system.h" |
14 | #include "..\lib\gui.h" |
14 | #include "..\lib\gui.h" |
15 | #include "..\lib\list_box.h" |
15 | #include "..\lib\list_box.h" |
16 | #include "..\lib\random.h" |
16 | #include "..\lib\random.h" |
17 | #include "..\lib\font.h" |
17 | #include "..\lib\kfont.h" |
18 | #include "..\lib\collection.h" |
18 | #include "..\lib\collection.h" |
19 | #include "..\lib\obj\libini.h" |
19 | #include "..\lib\obj\libini.h" |
20 | #include "..\lib\obj\box_lib.h" |
20 | #include "..\lib\obj\box_lib.h" |
21 | #include "..\lib\patterns\history.h" |
21 | #include "..\lib\patterns\history.h" |
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_file_name) + 141 + 26 > files.w) |
727 | if (label.getsize(label.size.pt, #label_file_name) + 141 + 26 > files.w) |
728 | { |
728 | { |
729 | while (label.getsize(#label_file_name) + 141 + 26 > files.w) { |
729 | while (label.getsize(label.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 | label.WriteIntoWindow(files.x + 23, files.item_h - label.height / 2 + y, bgcol, text_col, label.size.pt, #label_file_name); |