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:
parent
b775636858
commit
650ff20e1f
1 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue