- Timestamp:
- 2010-03-18T21:43:59+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r3136 r3144 187 187 private int lastViewID; 188 188 private boolean paintPreferencesChanged = true; 189 private Rectangle lastClipBounds = new Rectangle(); 189 190 190 191 public MapView() { … … 477 478 } 478 479 479 boolean canUseBuffer = !paintPreferencesChanged && nonChangedLayers.size() <= nonChangedLayersCount && lastViewID == getViewID(); 480 boolean canUseBuffer = !paintPreferencesChanged && nonChangedLayers.size() <= nonChangedLayersCount && 481 lastViewID == getViewID() && lastClipBounds.contains(g.getClipBounds()); 480 482 if (canUseBuffer) { 481 483 for (int i=0; i<nonChangedLayers.size(); i++) { … … 524 526 lastViewID = getViewID(); 525 527 paintPreferencesChanged = false; 528 lastClipBounds = g.getClipBounds(); 526 529 527 530 tempG.drawImage(nonChangedLayersBuffer, 0, 0, null);
Note:
See TracChangeset
for help on using the changeset viewer.