Commit d89dbfa3 authored by Davis King's avatar Davis King

Minor change to avoid a compiler warning in gcc

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403982
parent c560f604
......@@ -639,14 +639,18 @@ namespace dlib
// dest += (src - dest)*(alpha/255);
int temp = avg;
// copy dest into dest_copy using assign_pixel to avoid potential
// warnings about implicit float to int warnings.
int dest_copy;
assign_pixel(dest_copy, dest);
temp -= dest;
temp -= dest_copy;
temp *= src.alpha;
temp /= 255;
assign_pixel(dest, temp+dest);
assign_pixel(dest, temp+dest_copy);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment