Skip to content

Commit

Permalink
Fix: Canvas scaling after clicking 'reset'
Browse files Browse the repository at this point in the history
  • Loading branch information
SonarSonic committed Jul 14, 2024
1 parent cf4bb4c commit 0e1732a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/drawingbot/render/renderer/JFXRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void doRender() {
//Re-Render the canvas if the Display Mode is dirty
if(jfxDisplayMode.isRenderDirty(this)){
graphicsFX.setGlobalBlendMode(BlendMode.SRC_OVER);
graphicsFX.setTransform(1, 0, 0, 1, 0, 0);
graphicsFX.save();
jfxDisplayMode.preRender(this);
jfxDisplayMode.doRender(this);
Expand Down

0 comments on commit 0e1732a

Please sign in to comment.