ignore alpha in grid_pixfmt::blend_hiline, since we can, it will avoid compiler warnings in blend_pix, and will offer secondary protection from the bug fixed in b775636 - refs #1662

This commit is contained in:
Dane Springmeyer 2012-12-20 14:09:01 -08:00
parent b775636858
commit 650ff20e1f

View file

@ -258,7 +258,16 @@ public:
const color_type& c,
agg::int8u cover)
{
if (c.a)
value_type* p = (value_type*)
m_rbuf->row_ptr(x, y, len) + x * Step + Offset;
do
{
*p = c.v;
p += Step;
}
while(--len);
// We ignore alpha since grid_renderer is a binary renderer for now
/*if (c.a)
{
value_type* p = (value_type*)
m_rbuf->row_ptr(x, y, len) + x * Step + Offset;
@ -282,7 +291,7 @@ public:
}
while(--len);
}
}
}*/
}