From c6e897bf5e538ac1e2e6ed4872395165c3ea1a9b Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Wed, 13 Jul 2016 11:30:16 +0000 Subject: [PATCH] Correct top-left L-piece rendering Fix #6 --- .../java/com/io7m/jsycamore/core/renderer/SyEmbossed.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io7m-jsycamore-core/src/main/java/com/io7m/jsycamore/core/renderer/SyEmbossed.java b/io7m-jsycamore-core/src/main/java/com/io7m/jsycamore/core/renderer/SyEmbossed.java index 52dcfb3e..98c328ce 100644 --- a/io7m-jsycamore-core/src/main/java/com/io7m/jsycamore/core/renderer/SyEmbossed.java +++ b/io7m-jsycamore-core/src/main/java/com/io7m/jsycamore/core/renderer/SyEmbossed.java @@ -405,8 +405,8 @@ private void drawEmbossedCornerNW( this.poly.reset(); this.poly.addPoint(0, 0); this.poly.addPoint(emboss_size, emboss_size); - this.poly.addPoint(thickness_of_horizontal + emboss_size, emboss_size); - this.poly.addPoint(thickness_of_horizontal + emboss_size, 0); + this.poly.addPoint(thickness_of_vertical + emboss_size, emboss_size); + this.poly.addPoint(thickness_of_vertical + emboss_size, 0); graphics.fill(this.poly); graphics.setPaint(bottom); @@ -1010,14 +1010,14 @@ private void drawEmbossedL_NW( graphics.translate(0, thickness_of_horizontal); graphics.setPaint(left); - graphics.fillRect(0, 0, emboss_size, length - thickness_of_vertical); + graphics.fillRect(0, 0, emboss_size, length - thickness_of_horizontal); graphics.setTransform(old_transform); graphics.translate( thickness_of_vertical - emboss_size, thickness_of_horizontal); graphics.setPaint(right); - graphics.fillRect(0, 0, emboss_size, length - thickness_of_vertical); + graphics.fillRect(0, 0, emboss_size, length - thickness_of_horizontal); graphics.setTransform(old_transform); /**