Skip to content

Commit

Permalink
Merge #912
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Nov 7, 2022
2 parents 077d1a4 + fe4624a commit 0f81a0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/featurecat/lizzie/gui/BoardRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void draw(Graphics2D g) {
// timer.lap("rendering images");

if (!isMainBoard) {
if (Lizzie.config.showBranchNow()) {
if (showingBranch) {
drawMoveNumbers(g);
}
return;
Expand Down Expand Up @@ -709,14 +709,15 @@ private Optional<MoveData> getBestMove() {

/** Render the shadows and stones in correct background-foreground order */
private void renderImages(Graphics2D g) {
boolean showBranchNow = Lizzie.config.showBranchNow() || !isMainBoard;
g.setRenderingHint(KEY_ANTIALIASING, VALUE_ANTIALIAS_OFF);
g.drawImage(cachedEstimateLargeRectImage, x, y, null);
g.drawImage(cachedStonesShadowImage, x, y, null);
if (Lizzie.config.showBranchNow()) {
if (showBranchNow) {
g.drawImage(branchStonesShadowImage, x, y, null);
}
g.drawImage(cachedStonesImage, x, y, null);
if (Lizzie.config.showBranchNow()) {
if (showBranchNow) {
g.drawImage(branchStonesImage, x, y, null);
}
g.drawImage(cachedEstimateSmallRectImage, x, y, null);
Expand Down

0 comments on commit 0f81a0a

Please sign in to comment.