Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/imageprocess.c
| Show First 20 Lines • Show All 450 Lines • ▼ Show 20 Lines | while (a--) { | ||||
| } | } | ||||
| fp[3] = 1.0f; | fp[3] = 1.0f; | ||||
| fp += 4; | fp += 4; | ||||
| } | } | ||||
| } | } | ||||
| void IMB_alpha_under_color_byte(unsigned char *rect, int x, int y, float backcol[3]) | void IMB_alpha_under_color_byte(unsigned char *rect, int x, int y, const float backcol[3]) | ||||
| { | { | ||||
| size_t a = ((size_t)x) * y; | size_t a = ((size_t)x) * y; | ||||
| unsigned char *cp = rect; | unsigned char *cp = rect; | ||||
| while (a--) { | while (a--) { | ||||
| if (cp[3] == 255) { | if (cp[3] == 255) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| Show All 35 Lines | |||||