From c2c3674329ef2f81c93eab336eedcc0b6b14827e Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 18 Mar 2020 20:01:40 +0100 Subject: [PATCH] draw chassis towards the outside --- src/variety-common/Graphic.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/variety-common/Graphic.js b/src/variety-common/Graphic.js index 557ca7173..b23f5ea8f 100644 --- a/src/variety-common/Graphic.js +++ b/src/variety-common/Graphic.js @@ -2232,20 +2232,20 @@ pzpr.classmgr.makeCommon({ var boardWidth = bd.cols * this.cw, boardHeight = bd.rows * this.ch; var lw = this.lw, - lm = this.lm; + lm = this.lw - this.gw; if (this.pid === "bosanowa") { lw = 1; lm = 0.5; } g.fillStyle = this.quescolor; g.vid = "chs1_"; - g.fillRect(-lm, -lm, lw, boardHeight + lw); + g.fillRect(-lm, -lm, lw, boardHeight + 2 * lm); g.vid = "chs2_"; - g.fillRect(boardWidth - lm, -lm, lw, boardHeight + lw); + g.fillRect(boardWidth + lm, -lm, -lw, boardHeight + 2 * lm); g.vid = "chs3_"; - g.fillRect(-lm, -lm, boardWidth + lw, lw); + g.fillRect(-lm, -lm, boardWidth + 2 * lm, lw); g.vid = "chs4_"; - g.fillRect(-lm, boardHeight - lm, boardWidth + lw, lw); + g.fillRect(-lm, boardHeight + lm, boardWidth + 2 * lm, -lw); }, drawChassis_ex1: function(boldflag) { var g = this.vinc("chassis_ex1", "crispEdges", true),