Fix warning generated by gcc

This commit is contained in:
Magnus Norddahl 2016-06-21 22:10:04 +02:00
parent 4142b6ed1b
commit f81042b3e2

View file

@ -1722,7 +1722,8 @@ public:
// 64x64 is the most common case by far, so special case it. // 64x64 is the most common case by far, so special case it.
do do
{ {
*dest++ = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 26, 26), light, shade_constants), *dest); *dest = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 26, 26), light, shade_constants), *dest);
dest++;
xfrac += xstep; xfrac += xstep;
yfrac += ystep; yfrac += ystep;
} while (--count); } while (--count);
@ -1734,7 +1735,8 @@ public:
int xmask = ((1 << _xbits) - 1) << _ybits; int xmask = ((1 << _xbits) - 1) << _ybits;
do do
{ {
*dest++ = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 32 - _xbits, 32 - _ybits), light, shade_constants), *dest); *dest = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 32 - _xbits, 32 - _ybits), light, shade_constants), *dest);
dest++;
xfrac += xstep; xfrac += xstep;
yfrac += ystep; yfrac += ystep;
} while (--count); } while (--count);