Rev 4544 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4544 | Rev 4550 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | } |
23 | } |
Line 24... | Line 24... | ||
24 | 24 | ||
25 | int ImageCache::GetImageNumber(dword i_path) |
25 | int ImageCache::GetImageNumber(dword i_path) |
26 | { |
26 | { |
27 | int i; |
27 | int i; |
28 | for (i=0; i |
28 | for (i=0; i<=pics_count; i++) if (!strcmp(#pics[i].path, i_path)) return i; //image exists |
29 | // Load image and add it to Cache |
29 | // Load image and add it to Cache |
30 | pics_count++; |
30 | pics_count++; |
31 | pics[pics_count].image = load_image(i_path); |
31 | pics[pics_count].image = load_image(i_path); |
32 | strcpy(#pics[pics_count].path, i_path); |
32 | strcpy(#pics[pics_count].path, i_path); |
Line 93... | Line 93... | ||
93 | if (h<=0) return; |
93 | if (h<=0) return; |
94 | if (anchor) return; |
94 | if (anchor) return; |
Line 95... | Line 95... | ||
95 | 95 | ||
96 | img_draw stdcall (pics[cur_pic].image, left1-5, top1, w, h,0,img_lines_first); |
96 | img_draw stdcall (pics[cur_pic].image, left1-5, top1, w, h,0,img_lines_first); |
- | 97 | DrawBar(left1+w - 5, top1, WB1.list.w-w, h, bg_color); |
|
- | 98 | IF (link) |
|
97 | DrawBar(left1+w - 5, top1, WB1.list.w-w, h, bg_color); |
99 | { |
- | 100 | UnsafeDefineButton(left1 - 5, top1, w, h-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9); |
|
- | 101 | PageLinks.AddText(0, w, h-1, NOLINE); |
|
- | 102 | // WB1.DrawPage(); |
|
98 | IF (link) UnsafeDefineButton(left1 - 5, top1, w, h-1, PageLinks.count + 400 + BT_HIDE, 0xB5BFC9); |
103 | } |
Line 99... | Line 104... | ||
99 | } |
104 | } |
100 | 105 |