Skip to content

Commit

Permalink
Do not resize window when zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
mls-m5 committed May 22, 2024
1 parent 6e8a056 commit f5e93fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screen/guiscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ struct GuiScreen : public virtual IGuiScreen, public virtual IPixelSource {
void enlargeText() {
fontSize(_screen.fontSize() + 2);
auto size = _window.size();
resizePixels(size.w, size.h, true);
resizePixels(size.w, size.h, false);
simulateWindowResizeEvent();
}

Expand All @@ -635,7 +635,7 @@ struct GuiScreen : public virtual IGuiScreen, public virtual IPixelSource {
}
fontSize(_screen.fontSize() - 2);
auto size = _window.size();
resizePixels(size.w, size.h, true);
resizePixels(size.w, size.h, false);
simulateWindowResizeEvent();
}

Expand Down

0 comments on commit f5e93fa

Please sign in to comment.