From 11427e3436694b88ef255294038c7f6fb1f3dfa0 Mon Sep 17 00:00:00 2001 From: Sebastien Benard Date: Thu, 21 Sep 2023 17:49:31 +0200 Subject: [PATCH] Adjusted entity preview line width --- src/electron.renderer/misc/JsTools.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/electron.renderer/misc/JsTools.hx b/src/electron.renderer/misc/JsTools.hx index 3c2ec38d8..ae5583428 100644 --- a/src/electron.renderer/misc/JsTools.hx +++ b/src/electron.renderer/misc/JsTools.hx @@ -266,7 +266,7 @@ class JsTools { var tileRect = ed.uiTileRect!=null && ed.uiTileRect.w>0 ? ed.uiTileRect : ed.renderMode==Tile && ed.tileRect!=null ? ed.tileRect : null; - + if( tileRect!=null ) { // Tile var td = project.defs.getTilesetDef(tileRect.tilesetUid); @@ -298,7 +298,7 @@ class JsTools { ctx.fillStyle = new dn.Col(ed.color).toCssRgba(ed.fillOpacity); ctx.strokeStyle = new dn.Col(ed.color).toCssRgba(ed.lineOpacity); - ctx.lineWidth = 3; + ctx.lineWidth = 2; switch ed.renderMode { case Rectangle: @@ -316,6 +316,7 @@ class JsTools { ctx.stroke(); case Cross: + ctx.lineWidth = 4; ctx.moveTo(0,0); ctx.lineTo(wid, hei); ctx.moveTo(0,hei);