Skip to content

Commit

Permalink
Fixed Image Scaling Bug #11
Browse files Browse the repository at this point in the history
  • Loading branch information
SonarSonic committed Oct 11, 2021
1 parent ff6e7ef commit e586173
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/drawingbot/render/jfx/JavaFXRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ private void preRender(){
shouldRedraw = markRenderDirty || changedTask || changedMode || changedState;
canvasNeedsUpdate = canvasNeedsUpdate || lastMode == null || lastMode.type != DrawingBotV3.INSTANCE.display_mode.get().type;

//reset canvas scaling
graphicsFX.setTransform(1, 0, 0, 1, 0, 0);

switch (DrawingBotV3.INSTANCE.display_mode.get().type){
case IMAGE:
///we load the image, resize the canvas and redraw
Expand Down

0 comments on commit e586173

Please sign in to comment.