Rev 8336 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8336 | Rev 8339 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | w.add(_w); |
27 | w.add(_w); |
28 | h.add(_h); |
28 | h.add(_h); |
29 | } |
29 | } |
30 | 30 | ||
Line 31... | Line -... | ||
31 | /* |
- | |
32 | void _img::draw_all(int _x, _y, _w, _h, _start) |
- | |
33 | { |
- | |
34 | int i, img_y; |
- | |
35 | - | ||
36 | for (i=0; i |
- | |
37 | { |
- | |
38 | img_y = y.get(i); |
- | |
39 | - | ||
40 | if (img_y + h.get(i) > _start) && (img_y - _h < _start) |
- | |
41 | && (cache.has(url.get(i))) draw(_x, _y, _w, _h, _start, i); |
- | |
42 | } |
- | |
43 | } |
- | |
44 | */ |
- | |
45 | - | ||
46 | bool _img::draw(int _x, _y, _w, _h, _start, i) |
31 | bool _img::draw(int _x, _y, _w, _h, _start, i) |
47 | { |
32 | { |
48 | int img_x, img_y, img_w, img_h, invisible_h=0; |
33 | int img_x, img_y, img_w, img_h, invisible_h=0; |
49 | img_decode stdcall (cache.current_buf, cache.current_size, 0); |
- | |
50 | if (EAX) { |
- | |
51 | EDI = EAX; |
34 | char* img_ptr; |
Line 52... | Line 35... | ||
52 | 35 | ||
53 | img_x = x.get(i); |
36 | img_x = x.get(i); |
54 | img_y = y.get(i); |
37 | img_y = y.get(i); |
55 | img_w = math.min(w.set(i, ESDWORD[EDI+4]), _w - img_x); |
38 | img_w = math.min(w.get(i), _w - img_x); |
Line 56... | Line 39... | ||
56 | img_h = math.min(h.set(i, ESDWORD[EDI+8]), _h + _start - img_y); |
39 | img_h = math.min(h.get(i), _h + _start - img_y); |
57 | 40 | ||
58 | if (_start > img_y) { |
41 | if (_start > img_y) { |
59 | invisible_h = _start - img_y; |
42 | invisible_h = _start - img_y; |
Line -... | Line 43... | ||
- | 43 | img_y = _start; |
|
- | 44 | } |
|
60 | img_y = _start; |
45 | |
61 | } |
46 | img_decode stdcall (cache.current_buf, cache.current_size, 0); |
62 | - | ||
63 | img_draw stdcall(EDI, img_x + _x, img_y - _start + _y, img_w, img_h - invisible_h, 0, invisible_h); |
47 | img_ptr = EAX; |