AwtCanvas draw bitmap pixel perfect (#328)

This commit is contained in:
Longri
2017-03-07 11:26:15 +01:00
committed by Emux
parent d08ef59278
commit e562ebdff6
2 changed files with 15 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016 devemux86
* Copyright 2016 Longri
* Copyright 2016-2017 Longri
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -47,7 +47,7 @@ public class AwtBitmap implements Bitmap {
boolean internal;
public AwtBitmap(int width, int height, int format) {
bitmap = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
bitmap = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB_PRE);
this.width = width;
this.height = height;