forked from tTh/FloatImg
killed a mega bug in the upscaling
This commit is contained in:
@@ -197,6 +197,14 @@ return 0;
|
||||
int fimg_add_rgb(FloatImg *head, int x, int y, float r, float g, float b)
|
||||
{
|
||||
int offset;
|
||||
|
||||
if (head->type != FIMG_TYPE_RGB) {
|
||||
#if DEBUG_LEVEL > 1
|
||||
fprintf(stderr, "%s : type %d is bad.\n", __func__, head->type);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
offset = x + (y * head->width);
|
||||
head->R[offset] += r;
|
||||
head->G[offset] += g;
|
||||
|
||||
Reference in New Issue
Block a user