Merge branch 'master' of https://git.frank-ebner.de/FHWS/IndoorMap
This commit is contained in:
@@ -92,7 +92,7 @@ public:
|
||||
|
||||
|
||||
// if the to-be-displayed image is smaller than the input-one, use a pre-computed downscaled version
|
||||
if (scaledArea < origArea) {
|
||||
if (scaledArea < origArea*0.75) {
|
||||
// does the cached downscaled image needs rebuild? (size changed)
|
||||
if (imgScaled.width() != sw || imgScaled.height() != sh) {
|
||||
imgScaled = img.scaled(sw, sh, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||
|
||||
Reference in New Issue
Block a user