Skip to content

Commit

Permalink
Fix overflow of variation tree with largeSubBoard in normal UI (featu…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Nov 9, 2020
1 parent ebeb446 commit a53007d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,10 @@ public void paintMainPanel(Graphics g0) {
drawContainer(backgroundG.get(), vx, vy, vw, vh);
}
if (Lizzie.config.showVariationGraph) {
Shape origClip = g.getClip();
g.setClip(treex, treey, treew, treeh);
variationTree.draw(g, treex, treey, treew, treeh);
g.setClip(origClip);
}
if (Lizzie.config.showComment) {
drawComment(g, cx, cy, cw, ch);
Expand Down

0 comments on commit a53007d

Please sign in to comment.