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
hope366 committed Nov 10, 2020
1 parent bb4efdf commit 9a13ca9
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 @@ -652,7 +652,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 9a13ca9

Please sign in to comment.