killed a mega bug in the upscaling

This commit is contained in:
tonton Th
2019-09-03 19:35:45 +02:00
parent b67d023f0c
commit 5758f1c932
3 changed files with 10 additions and 3 deletions

View File

@@ -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;