Fix issue with white blank tiles at edge of JPG rendered maps

This commit is contained in:
Mike Primm 2011-12-23 13:27:36 +08:00 committed by mikeprimm
parent b872aa039e
commit cd067adfdc
2 changed files with 19 additions and 7 deletions

View file

@ -122,6 +122,10 @@ public class HDMap extends MapType {
if(c != null) {
bgcolornight = parseColor(c);
}
if(imgformat != ImageFormat.FORMAT_PNG) { /* If JPG, set background color opacity */
bgcolorday |= 0xFF000000;
bgcolornight |= 0xFF000000;
}
}
public HDShader getShader() { return shader; }