mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
improve line zoom
This commit is contained in:
@@ -438,7 +438,8 @@ class G2DWrapper extends Graphics2D implements IDrawingObserver {
|
|||||||
public void setStroke(Stroke s) {
|
public void setStroke(Stroke s) {
|
||||||
if (this.zoom > 1 && s.getClass() == BasicStroke.class) {
|
if (this.zoom > 1 && s.getClass() == BasicStroke.class) {
|
||||||
BasicStroke bs = (BasicStroke) s;
|
BasicStroke bs = (BasicStroke) s;
|
||||||
s = ObjectCache.getInstance().fetchBasicStroke((float) (bs.getLineWidth() / zoom));
|
if (bs.getLineWidth() == 1)
|
||||||
|
s = ObjectCache.getInstance().fetchBasicStroke((float) (bs.getLineWidth() / zoom));
|
||||||
}
|
}
|
||||||
canvasGraphics.setStroke(s);
|
canvasGraphics.setStroke(s);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user