avoid loss of true black on BIG_ENDIAN
This commit is contained in:
parent
c29c8b459e
commit
d1f1f6971b
1 changed files with 4 additions and 0 deletions
|
@ -267,10 +267,14 @@ namespace mapnik
|
|||
|
||||
for (int x = box.minx(); x < box.maxx(); ++x)
|
||||
{
|
||||
#ifdef MAPNIK_BIG_ENDIAN
|
||||
row_to[x] = row_from[x-x0];
|
||||
#else
|
||||
if (row_from[x-x0] & 0xff000000)
|
||||
{
|
||||
row_to[x] = row_from[x-x0];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue