X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fsubstrate.c;h=7d992311c2a60fc06fdd2d450d43b96237855b1e;hp=a2c0af601f53647c1696a8a0e0c213d5bb9a359d;hb=3f438031d610c7e15fd33876a879b97e290e05fb;hpb=447db08c956099b3b183886729108bf5b364c4b8 diff --git a/hacks/substrate.c b/hacks/substrate.c index a2c0af60..7d992311 100644 --- a/hacks/substrate.c +++ b/hacks/substrate.c @@ -29,6 +29,7 @@ * implied warranty. */ +#include #include "screenhack.h" #include #include @@ -320,8 +321,8 @@ inline unsigned long trans_point(int x1, int y1, unsigned long myc, float a, if (a >= 1.0) { ref_pixel(f, x1, y1) = myc; } else { - int or, og, ob; - int r, g, b; + int or = 0, og = 0, ob = 0; + int r = 0, g = 0, b = 0; int nr, ng, nb; unsigned long c;