/programs/cmm/lib/patterns/libimg_load_skin.h |
---|
1,3 → 1,10 |
#ifndef INCLUDE_LIBIMG_LOAD_SKIN_H |
#define INCLUDE_LIBIMG_LOAD_SKIN_H |
#ifndef INCLUDE_LIBIMG_H |
#include "../lib/obj/libimg_lib.h" |
#endif |
struct libimg_image { |
dword image, w, h; |
}; |
18,4 → 25,6 |
image_data = ESDWORD[struct_pointer + 24]; |
max_i = w * h * 4 + image_data; |
for (i = image_data; i < max_i; i += 4) if (DSDWORD[i]==0) DSDWORD[i] = new_transparent_color; |
} |
} |
#endif |