From 1fe87334782467d9f893c798038c2453cf592a12 Mon Sep 17 00:00:00 2001 From: XDrake99 Date: Thu, 2 Feb 2017 18:46:35 +0100 Subject: [PATCH] Fixed parenthesis shape --- .../math/functions/Expression.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/org/warp/picalculator/math/functions/Expression.java b/src/org/warp/picalculator/math/functions/Expression.java index 15de8a67..0c821210 100644 --- a/src/org/warp/picalculator/math/functions/Expression.java +++ b/src/org/warp/picalculator/math/functions/Expression.java @@ -646,9 +646,15 @@ public class Expression extends FunctionMultipleValues { final float maxy = y + getHeight(); final int h = getHeight(); x += 1; - DisplayManager.renderer.glDrawLine(x, y + 2, x + 2, y); + DisplayManager.renderer.glDrawLine(x, y + 2, x, y + 2); + DisplayManager.renderer.glDrawLine( x + 1, y + 1, x + 1, y + 1); + DisplayManager.renderer.glDrawLine( x + 2, y, x + 2, y); + DisplayManager.renderer.glDrawLine(x, y + 2, x, y + h - 3); - DisplayManager.renderer.glDrawLine(x, y + h - 3, x + 2, y + h - 1); + + DisplayManager.renderer.glDrawLine(x, y + h - 3, x, y + h - 3); + DisplayManager.renderer.glDrawLine(x + 1, y + h - 2, x + 1, y + h - 2); + DisplayManager.renderer.glDrawLine(x + 2, y + h - 1, x + 2, y + h - 1); x += 4; for (final Function f : functions) { final float fheight = f.getHeight(); @@ -657,9 +663,15 @@ public class Expression extends FunctionMultipleValues { x += f.getWidth(); } x += 2; - DisplayManager.renderer.glDrawLine(x, y, x + 2, y + 2); + DisplayManager.renderer.glDrawLine(x, y, x, y); + DisplayManager.renderer.glDrawLine(x + 1, y + 1, x + 1, y + 1); + DisplayManager.renderer.glDrawLine(x + 2, y + 2, x + 2, y + 2); + DisplayManager.renderer.glDrawLine(x + 2, y + 2, x + 2, y + h - 3); - DisplayManager.renderer.glDrawLine(x, y + h - 1, x + 2, y + h - 3); + + DisplayManager.renderer.glDrawLine(x, y + h - 1, x, y + h - 1); + DisplayManager.renderer.glDrawLine(x + 1, y + h - 2, x + 1, y + h - 2); + DisplayManager.renderer.glDrawLine(x + 2, y + h - 3, x + 2, y + h - 3); x += 4; } }