Rev 5710 | Rev 5743 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5710 | Rev 5719 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | 42 | ||
43 | ficons_pal[0] = fairing_color; |
43 | ficons_pal[0] = fairing_color; |
44 | PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal); |
44 | PutPaletteImage(icon_n*16*15+#ficons,16,15,xx,yy,8,#ficons_pal); |
45 | if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color); |
45 | if (fairing_color!=0xFFFfff) IconFairing(icon_n, xx, yy, fairing_color); |
46 | if (use_big_fonts) font_half_height=0; else font_half_height=4; |
46 | if (use_big_fonts) font_half_height=0; else font_half_height=4; |
47 | if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+Form.cwidth-121,yy+font_half_height,files.font_type,0,extension); |
47 | if (icon_n!=17) && (strlen(extension)<9) WriteText(-FileShow.font_size_x/2*strlen(extension)+files.x+files.w-103,yy+font_half_height,files.font_type,0,extension); |
Line 48... | Line 48... | ||
48 | } |
48 | } |
49 | 49 | ||
50 | 50 | ||
51 | void IconFairing(dword filenum, x,y, color) |
51 | void IconFairing(dword filenum, x,y, color) |
52 | { |
52 | { |
53 | switch(filenum) |
53 | switch(filenum) |
54 | { |
54 | { |
55 | case 0...1: //file |
55 | case 0...1: //file |
56 | case 3: //íàñòðîéêè |
56 | case 3: //íàñòðîéêè |
57 | RIGHT_PAINT: |
57 | RIGHT_PAINT: |
58 | PutPixel(x+10,y,color); |
58 | PutPixel(x+10,y,color); |
Line 112... | Line 112... | ||
112 | case 16...17: //folder |
112 | case 16...17: //folder |
113 | DrawBar(x,y,1,15,color); |
113 | DrawBar(x,y,1,15,color); |
114 | DrawBar(x+8,y,8,2,color); |
114 | DrawBar(x+8,y,8,2,color); |
115 | IF (filenum==17) PutPixel(x+11,y+1,0x1A7B17); //green arrow part |
115 | IF (filenum==17) PutPixel(x+11,y+1,0x1A7B17); //green arrow part |
116 | DrawBar(x+1,y+13,15,2,color); |
116 | DrawBar(x+1,y+13,15,2,color); |
117 | PutPixel(x+1,y,color); //.òî÷êè |
117 | PutPixel(x+1,y,color); |
118 | PutPixel(x+7,y,color); |
118 | PutPixel(x+7,y,color); |
119 | PutPixel(x+15,y+2,color); |
119 | PutPixel(x+15,y+2,color); |
120 | PutPixel(x+1,y+12,color); |
120 | PutPixel(x+1,y+12,color); |
121 | PutPixel(x+15,y+12,color); |
121 | PutPixel(x+15,y+12,color); |
122 | return; |
122 | return; |
123 | case 18: //êàðòðèäæ |
123 | case 18: |
124 | DrawBar(x,y+11,1,2,color); |
124 | DrawBar(x,y+11,1,2,color); |
125 | DrawBar(x+15,y+11,1,2,color); |
125 | DrawBar(x+15,y+11,1,2,color); |
126 | DrawBar(x,y+13,16,1,color); |
126 | DrawBar(x,y+13,16,1,color); |
127 | return; |
127 | return; |
128 | case 24: //îáðàç |
128 | case 24: |
129 | DrawBar(x,y,6,1,color); |
129 | DrawBar(x,y,6,1,color); |
130 | DrawBar(x,y+1,4,1,color); |
130 | DrawBar(x,y+1,4,1,color); |
131 | DrawBar(x,y+2,3,1,color); |
131 | DrawBar(x,y+2,3,1,color); |
132 | DrawBar(x,y+3,2,2,color); |
132 | DrawBar(x,y+3,2,2,color); |