Changeset 2809 in josm


Ignore:
Timestamp:
2010-01-10T19:52:22+01:00 (11 years ago)
Author:
jttt
Message:

Use image without alpha for offscreen buffer. Seems to the same thing but it's faster by 70ms on every paint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r2711 r2809  
    436436        if (null == offscreenBuffer || offscreenBuffer.getWidth() != getWidth()
    437437                || offscreenBuffer.getHeight() != getHeight()) {
    438             offscreenBuffer = new BufferedImage(getWidth(), getHeight(),
    439                     BufferedImage.TYPE_INT_ARGB);
     438            offscreenBuffer = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_3BYTE_BGR);
    440439        }
    441440
Note: See TracChangeset for help on using the changeset viewer.