Rev 5421 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5421 | Rev 5598 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #ifndef INCLUDE_LIBIMG_LOAD_SKIN_H |
|
- | 2 | #define INCLUDE_LIBIMG_LOAD_SKIN_H |
|
- | 3 | ||
- | 4 | #ifndef INCLUDE_LIBIMG_H |
|
- | 5 | #include "../lib/obj/libimg_lib.h" |
|
- | 6 | #endif |
|
- | 7 | ||
1 | struct libimg_image { |
8 | struct libimg_image { |
2 | dword image, w, h; |
9 | dword image, w, h; |
3 | }; |
10 | }; |
Line 4... | Line 11... | ||
4 | 11 | ||
Line 17... | Line 24... | ||
17 | dword i, max_i, image_data; |
24 | dword i, max_i, image_data; |
18 | image_data = ESDWORD[struct_pointer + 24]; |
25 | image_data = ESDWORD[struct_pointer + 24]; |
19 | max_i = w * h * 4 + image_data; |
26 | max_i = w * h * 4 + image_data; |
20 | for (i = image_data; i < max_i; i += 4) if (DSDWORD[i]==0) DSDWORD[i] = new_transparent_color; |
27 | for (i = image_data; i < max_i; i += 4) if (DSDWORD[i]==0) DSDWORD[i] = new_transparent_color; |
21 | }> |
28 | } |
22 | 29 | ||
- | 30 | #endif> |
|
- | 31 | ||
23 | 32 |