Rev 2811 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2811 | Rev 2839 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | inline byte chTag(dword text) {return strcmp(#tag,text);} |
25 | inline byte chTag(dword text) {return strcmp(#tag,text);} |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | 27 | ||
28 | void GetURLfromPageLinks(int id) |
28 | void GetURLfromPageLinks(int id) |
29 | { |
29 | { |
30 | int j = 0; |
30 | int i, j = 0; |
31 | for (i = 0; i <= id - 401; i++) |
31 | for (i = 0; i <= id - 401; i++) |
32 | { |
32 | { |
33 | do j++; |
33 | do j++; |
34 | while (page_links[j] <>'|'); |
34 | while (page_links[j] <>'|'); |
35 | } |
35 | } |
36 | page_links[j] = 0x00; |
36 | page_links[j] = 0x00; |
Line 37... | Line 37... | ||
37 | strcpy(#URL, #page_links[find_symbol(#page_links, '|')]); |
37 | strcpy(#URL, #page_links[strrchr(#page_links, '|')]); |
38 | } |
38 | } |
Line 47... | Line 47... | ||
47 | inline void Skew(dword x,y,w,h) |
47 | inline void Skew(dword x,y,w,h) |
48 | { |
48 | { |
49 | dword italic_buf; |
49 | dword italic_buf; |
50 | int tile_height=2, //áóäåì âûâîäèòü äâóõïèêñåëüíûìè ïîëîñêàìè |
50 | int tile_height=2, //áóäåì âûâîäèòü äâóõïèêñåëüíûìè ïîëîñêàìè |
51 | shift=-2, //ñ äâóõïèêñåëüíûì ñìåùåíèåì |
51 | shift=-2, //ñ äâóõïèêñåëüíûì ñìåùåíèåì |
52 | i; |
52 | i, skin_width; |
Line 53... | Line 53... | ||
53 | 53 | ||
- | 54 | italic_buf = mem_Alloc(w*h*3); |
|
- | 55 | skin_width = GetSkinWidth(); |
|
Line 54... | Line -... | ||
54 | italic_buf = mem_Alloc(w*h*3); |
- | |
55 | - | ||
56 | CopyScreen(italic_buf, x+Form.left+2, GetSkinWidth()+y+Form.top, w, h); |
56 | CopyScreen(italic_buf, x+Form.left+2, y+Form.top+skin_width, w, h); |
57 | 57 | ||
58 | FOR (i=0;i*tile_height |
58 | FOR (i=0;i*tile_height |
59 | PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y); |
59 | PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y); |
60 | } |
60 |