diff --git a/vtm/src/org/oscim/theme/styles/LineStyle.java b/vtm/src/org/oscim/theme/styles/LineStyle.java index 513b8166..75803f81 100644 --- a/vtm/src/org/oscim/theme/styles/LineStyle.java +++ b/vtm/src/org/oscim/theme/styles/LineStyle.java @@ -19,6 +19,7 @@ */ package org.oscim.theme.styles; +import org.oscim.backend.CanvasAdapter; import org.oscim.backend.canvas.Color; import org.oscim.backend.canvas.Paint.Cap; import org.oscim.renderer.bucket.TextureItem; @@ -58,15 +59,15 @@ public final class LineStyle extends RenderStyle { public final float repeatGap; public LineStyle(int stroke, float width) { - this(0, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT, REPEAT_GAP_DEFAULT); + this(0, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } public LineStyle(int level, int stroke, float width) { - this(level, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT, REPEAT_GAP_DEFAULT); + this(level, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } public LineStyle(int stroke, float width, Cap cap) { - this(0, "", stroke, width, cap, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT, REPEAT_GAP_DEFAULT); + this(0, "", stroke, width, cap, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } public LineStyle(int level, String style, int color, float width, @@ -328,8 +329,8 @@ public final class LineStyle extends RenderStyle { symbolPercent = 100; dashArray = null; - repeatStart = REPEAT_START_DEFAULT; - repeatGap = REPEAT_GAP_DEFAULT; + repeatStart = REPEAT_START_DEFAULT * CanvasAdapter.getScale(); + repeatGap = REPEAT_GAP_DEFAULT * CanvasAdapter.getScale(); return self(); } diff --git a/vtm/src/org/oscim/theme/styles/SymbolStyle.java b/vtm/src/org/oscim/theme/styles/SymbolStyle.java index 53192009..2267426a 100644 --- a/vtm/src/org/oscim/theme/styles/SymbolStyle.java +++ b/vtm/src/org/oscim/theme/styles/SymbolStyle.java @@ -19,6 +19,7 @@ */ package org.oscim.theme.styles; +import org.oscim.backend.CanvasAdapter; import org.oscim.backend.canvas.Bitmap; import org.oscim.renderer.atlas.TextureRegion; @@ -67,8 +68,8 @@ public final class SymbolStyle extends RenderStyle { this.billboard = false; this.repeat = false; - this.repeatStart = REPEAT_START_DEFAULT; - this.repeatGap = REPEAT_GAP_DEFAULT; + this.repeatStart = REPEAT_START_DEFAULT * CanvasAdapter.getScale(); + this.repeatGap = REPEAT_GAP_DEFAULT * CanvasAdapter.getScale(); this.rotate = true; } @@ -221,8 +222,8 @@ public final class SymbolStyle extends RenderStyle { billboard = false; repeat = false; - repeatStart = REPEAT_START_DEFAULT; - repeatGap = REPEAT_GAP_DEFAULT; + repeatStart = REPEAT_START_DEFAULT * CanvasAdapter.getScale(); + repeatGap = REPEAT_GAP_DEFAULT * CanvasAdapter.getScale(); rotate = true; return self();