Rev 4415 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4415 | Rev 4416 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | for ( ; num_of_pics>0; num_of_pics--) |
22 | for ( ; num_of_pics>0; num_of_pics--) |
23 | { |
23 | { |
24 | if (pics[num_of_pics].image) img_destroy stdcall (pics[num_of_pics].image); |
24 | if (pics[num_of_pics].image) img_destroy stdcall (pics[num_of_pics].image); |
25 | pics[num_of_pics].path = NULL; |
25 | pics[num_of_pics].path = NULL; |
26 | } |
26 | } |
27 | notify(IMAGES_CACHE_CLEARED); |
- | |
28 | } |
27 | } |
Line 29... | Line 28... | ||
29 | 28 | ||
30 | 29 | ||
Line 40... | Line 39... | ||
40 | if (downloader_id) strcpy(#img_path, #history_list[history_current-1].Item); |
39 | if (downloader_id) strcpy(#img_path, #history_list[history_current-1].Item); |
41 | else strcpy(#img_path, BrowserHistory.CurrentUrl()); //äîñòà¸ì àäðåñ òåêóùåé ñòðàíèöû |
40 | else strcpy(#img_path, BrowserHistory.CurrentUrl()); //äîñòà¸ì àäðåñ òåêóùåé ñòðàíèöû |
Line 42... | Line 41... | ||
42 | 41 | ||
43 | if (strcmpn(#img_path, "http:", 5)!=0) || (strcmpn(#options, "http:", 5)!=0) |
42 | if (strcmpn(#img_path, "http:", 5)!=0) || (strcmpn(#options, "http:", 5)!=0) |
44 | { |
- | |
45 | debug("image options:"); |
- | |
46 | debug(#options); |
43 | { |
47 | //get path: absolute or relative |
44 | //get path: absolute or relative |
48 | if (options[0]=='/') |
45 | if (options[0]=='/') |
49 | strcpy(#img_path, #options); |
46 | strcpy(#img_path, #options); |
50 | else |
47 | else |
51 | { |
48 | { |
52 | img_path[strrchr(#img_path, '/')] = '\0'; |
49 | img_path[strrchr(#img_path, '/')] = '\0'; |
53 | strcat(#img_path, #options); |
50 | strcat(#img_path, #options); |
54 | } |
- | |
55 | debug("image img_path:"); |
- | |
56 | debug(#img_path); |
51 | } |
57 | cur_pic=GetOrSetPicNum(#img_path); |
52 | cur_pic=GetOrSetPicNum(#img_path); |
58 | if (!pics[cur_pic].path) |
53 | if (!pics[cur_pic].path) |
59 | { |
54 | { |
60 | pics[cur_pic].image=load_image(#img_path); |
55 | pics[cur_pic].image=load_image(#img_path); |