avoid loss of true black on BIG_ENDIAN

This commit is contained in:
Dane Springmeyer 2009-11-02 23:55:16 +00:00
parent c29c8b459e
commit d1f1f6971b

View file

@ -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
}
}
}