summary refs log tree commit diff
path: root/src/dialogs/ImageOverlay.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-01 21:10:03 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-01 21:10:03 +0300
commitb5b5faa5eceba4c5ad0508cc0c079e6bad73b025 (patch)
treecf20ce75dc864f1a12d24574f894c69125ca4057 /src/dialogs/ImageOverlay.cpp
parentAdd install instructions for macOS (#395) (diff)
downloadnheko-b5b5faa5eceba4c5ad0508cc0c079e6bad73b025.tar.xz
Consider the scale ratio when scaling down images
fixes #393
Diffstat (limited to 'src/dialogs/ImageOverlay.cpp')
-rw-r--r--src/dialogs/ImageOverlay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/ImageOverlay.cpp b/src/dialogs/ImageOverlay.cpp

index 7773f97c..b40aa164 100644 --- a/src/dialogs/ImageOverlay.cpp +++ b/src/dialogs/ImageOverlay.cpp
@@ -68,7 +68,7 @@ ImageOverlay::paintEvent(QPaintEvent *event) int max_width = screen_.width() - 2 * outer_margin; int max_height = screen_.height(); - image_ = utils::scaleDown<QPixmap>(max_width, max_height, originalImage_); + image_ = utils::scaleDown(max_width, max_height, originalImage_); int diff_x = max_width - image_.width(); int diff_y = max_height - image_.height();