diff --git a/diylc/diylc-core/src/org/diylc/presenter/DrawingCache.java b/diylc/diylc-core/src/org/diylc/presenter/DrawingCache.java index bd22ad83..598f4bcb 100644 --- a/diylc/diylc-core/src/org/diylc/presenter/DrawingCache.java +++ b/diylc/diylc-core/src/org/diylc/presenter/DrawingCache.java @@ -166,7 +166,7 @@ public class DrawingCache { // only honor the cache if the component hasn't changed in the meantime if (value == null || !value.getComponent().equalsTo(component) - || value.getState() != componentState || value.getZoom() != zoom) { + || value.getState() != componentState || value.getZoom() != zoom || value.getOutlineMode() != outlineMode) { // figure out size and placement of buffer image Rectangle2D rect = component.getCachingBounds(); int width = (int)Math.round(rect.getWidth() * zoom); @@ -236,7 +236,7 @@ public class DrawingCache { // add to the cache value = new CacheValue(component, image, wrapper.getCurrentArea(), wrapper.getContinuityPositiveAreas(), - wrapper.getContinuityNegativeAreas(), componentState, zoom, dx, dy, rect); + wrapper.getContinuityNegativeAreas(), componentState, outlineMode, zoom, dx, dy, rect); imageCache.put(component, value); } @@ -250,6 +250,7 @@ public class DrawingCache { Map continuityPositiveAreas; Map continuityNegativeAreas; ComponentState state; + boolean outlineMode; double zoom; int dx; int dy; @@ -257,7 +258,7 @@ public class DrawingCache { public CacheValue(IDIYComponent component, BufferedImage image, Area currentArea, Map continuityPositiveAreas, Map continuityNegativeAreas, - ComponentState state, double zoom, int dx, int dy, Rectangle2D cacheBounds) { + ComponentState state, boolean outlineMode, double zoom, int dx, int dy, Rectangle2D cacheBounds) { super(); this.cacheBounds = cacheBounds; // take a copy of the component, so we can check if it changed in the meantime @@ -270,6 +271,7 @@ public class DrawingCache { this.continuityPositiveAreas = continuityPositiveAreas; this.continuityNegativeAreas = continuityNegativeAreas; this.state = state; + this.outlineMode = outlineMode; this.zoom = zoom; this.dx = dx; this.dy = dy; @@ -299,6 +301,10 @@ public class DrawingCache { return state; } + public boolean getOutlineMode() { + return outlineMode; + } + public double getZoom() { return zoom; } diff --git a/diylc/diylc-core/src/org/diylc/presenter/update.xml b/diylc/diylc-core/src/org/diylc/presenter/update.xml index 937d3bc2..18568149 100644 --- a/diylc/diylc-core/src/org/diylc/presenter/update.xml +++ b/diylc/diylc-core/src/org/diylc/presenter/update.xml @@ -3083,7 +3083,7 @@ 7 0 - 2020-05-03 00:00:00.000 CET + 2020-05-11 00:00:00.000 CET @@ -3116,6 +3116,26 @@ https://github.com/bancika/diy-layout-creator/releases + + + + 4 + 8 + 0 + + 2020-05-11 00:00:00.000 CET + + + + IMPROVEMENT + Improved Dutch translation + + + BUG_FIX + "Outline Mode" produces rendering issues when "Cache Boost" feature is enabled + + + https://github.com/bancika/diy-layout-creator/releases