Rev 6803 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6803 | Rev 7742 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | 35 | ||
36 | 36 | ||
37 | void ImageCache::Images(dword left1, top1, width1) |
37 | void ImageCache::Images(dword left1, top1, width1) |
38 | { |
- | |
39 | dword image; |
38 | { |
Line 40... | Line -... | ||
40 | char img_path[4096], alt[4096]=0; |
- | |
41 | dword imgw=0, imgh=0, img_lines_first=0, cur_pic=0; |
- | |
42 | - | ||
43 | do{ |
- | |
44 | if (isattr("src=")) |
39 | dword image; |
45 | { |
40 | dword imgw=0, imgh=0, img_lines_first=0, cur_pic=0; |
46 | strcpy(#img_path, #val); |
- | |
47 | GetAbsoluteURL(#img_path); |
- | |
48 | cur_pic = GetImage(#img_path); |
- | |
49 | } |
- | |
50 | if (isattr("alt=")) |
- | |
51 | { |
- | |
52 | strcpy(#alt, "["); |
- | |
53 | strcat(#alt, #val); |
- | |
54 | strcat(#alt, "]"); |
- | |
Line 55... | Line 41... | ||
55 | } |
41 | |
56 | 42 | //GetAbsoluteURL(#img_path); |
|
57 | } while(GetNextParam()); |
- | |
58 | 43 | //cur_pic = GetImage(#img_path); |
|
59 | if (!pics[cur_pic].image) |
44 | |
60 | { |
45 | if (!pics[cur_pic].image) |
Line 61... | Line 46... | ||
61 | if (alt) strcat(#line, #alt); |
46 | { |
62 | //cur_pic = GetImage("/sys/network/noimg.png"); |
47 | //cur_pic = GetImage("/sys/network/noimg.png"); |
63 | return; |
48 | return; |
Line 64... | Line 49... | ||
64 | } |
49 | } |
65 | 50 | ||
66 | imgw = DSWORD[pics[cur_pic].image+4]; |
51 | imgw = DSWORD[pics[cur_pic].image+4]; |
67 | imgh = DSWORD[pics[cur_pic].image+8]; |
52 | imgh = DSWORD[pics[cur_pic].image+8]; |
68 | if (imgw > width1) imgw = width1; |
53 | if (imgw > width1) imgw = width1; |
69 | 54 |