Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change BoarderRenderer.emptyName to true #622

Merged
merged 1 commit into from
Oct 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/java/featurecat/lizzie/gui/BoardRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class BoardRenderer {
private static final double STARPOINT_DIAMETER = 0.015;
private static final BufferedImage emptyImage = new BufferedImage(1, 1, TYPE_INT_ARGB);

private static boolean emptyName = false;
private static boolean emptyName = true;
private static boolean changedName = false;

private int x, y;
Expand Down Expand Up @@ -1791,7 +1791,10 @@ public void drawEstimateRect(ArrayList<Double> estimateArray, boolean isZen) {
boolean differentColor = isBlack ? stoneHere.isWhite() : stoneHere.isBlack();
boolean anyColor = stoneHere.isWhite() || stoneHere.isBlack();
boolean allowed =
drawSmart == 0 || (drawSmart == 1 && differentColor) || (drawSmart == 2 && anyColor) || (drawSmart == 1 && !anyColor && drawSmall);
drawSmart == 0
|| (drawSmart == 1 && differentColor)
|| (drawSmart == 2 && anyColor)
|| (drawSmart == 1 && !anyColor && drawSmall);
if (drawSmall && allowed) {
double lengthFactor = drawSize ? 2 * convertLength(estimate) : 1.2;
int length = (int) (lengthFactor * stoneRadius);
Expand Down