Rev 8017 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8017 | Rev 8020 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | { |
54 | { |
55 | data.set(getid, _data); |
55 | data.set(getid, _data); |
56 | } |
56 | } |
57 | 57 | ||
Line 58... | Line -... | ||
58 | void DrawLibimgImage(dword _x, _y, _data, _data_len) |
- | |
59 | { |
- | |
60 | libimg_image im; |
- | |
61 | img_decode stdcall (_data, _data_len, 0); |
- | |
62 | $or eax, eax |
- | |
63 | $jz __ERROR__ |
- | |
64 | - | ||
65 | im.image = EAX; |
- | |
66 | im.set_vars(); |
- | |
67 | im.draw(_x, _y, im.w, im.h, 0, 0); |
- | |
68 | __ERROR__: |
- | |
69 | } |
- | |
70 | - | ||
71 | void _img::draw(int _x, _y, _start, _height) |
58 | void _img::draw(int _x, _y, _start, _height) |
72 | { |
59 | { |
73 | int i, img_x, img_y; |
60 | int i, img_x, img_y; |
Line 74... | Line 61... | ||
74 | 61 | ||
Line 84... | Line 71... | ||
84 | } |
71 | } |
85 | } |
72 | } |
86 | } |
73 | } |
87 | 74 | ||
Line -... | Line 75... | ||
- | 75 | void DrawLibimgImage(dword _x, _y, _data, _data_len) |
|
- | 76 | { |
|
- | 77 | libimg_image im; |
|
- | 78 | img_decode stdcall (_data, _data_len, 0); |
|
- | 79 | $or eax, eax |
|
- | 80 | $jz __ERROR__ |
|
- | 81 | ||
- | 82 | im.image = EAX; |
|
- | 83 | im.set_vars(); |
|
- | 84 | im.draw(_x, _y, im.w, im.h, 0, 0); |
|
- | 85 | __ERROR__: |
|
- | 86 | } |
|
- | 87 | ||
88 | /* |
88 | /* |
Line 89... | Line 89... | ||
89 | 89 | ||
90 | void ImageCache::Images(dword left1, top1, width1) |
90 | void ImageCache::Images(dword left1, top1, width1) |
91 | { |
91 | { |