Skip to content

Commit

Permalink
fixed : sometimes text was drawn upscaled on final image in text-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharindam committed Dec 13, 2022
1 parent 5d968fc commit df26761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion plugins/text-tool/text_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,12 @@ TextToolDialog:: onBgColorChange(int index)
updateCurrentTextbox();
}


void
TextToolDialog:: accept()
{
// image needs to set pixel density, otherwise drawing text gives weird scaled fonts
image.setDotsPerMeterX(this->logicalDpiX()/0.0254);
image.setDotsPerMeterY(this->logicalDpiY()/0.0254);
painter.begin(&image);
painter.scale(1.0/scale, 1.0/scale);
for (TextBox &textbox : textboxes) {
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "exif.h"

#define PROG_NAME "PhotoQuick"
#define PROG_VERSION "4.15.2"
#define PROG_VERSION "4.15.3"
#define COPYRIGHT_YEAR "2017-2021"
#define AUTHOR_NAME "Arindam Chaudhuri"
#define AUTHOR_EMAIL "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion windows/PhotoQuick.nsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; HM NIS Edit Wizard helper defines
!define PROG_NAME "PhotoQuick"
!define PROG_VERSION "4.15.2"
!define PROG_VERSION "4.15.3"
!define PROG_PUBLISHER "Arindamsoft"
!define PROG_ICON "photoquick.ico"
!define PROG_EXEC "photoquick.exe"
Expand Down

0 comments on commit df26761

Please sign in to comment.