diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index 2f8f1e2e2d..1d4cfc8eb2 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -247,10 +247,11 @@ AboutDialog::AboutDialog(bool showLic, QWidget* parent) QPixmap image = getMainWindow()->splashImage(); // Make sure the image is not too big - if (image.height() > rect.height()/2 || image.width() > rect.width()/2) { + int denom = 4; + if (image.height() > rect.height()/denom || image.width() > rect.width()/denom) { float scale = static_cast(image.width()) / static_cast(image.height()); - int width = std::min(image.width(), rect.width()/2); - int height = std::min(image.height(), rect.height()/2); + int width = std::min(image.width(), rect.width()/denom); + int height = std::min(image.height(), rect.height()/denom); height = std::min(height, static_cast(width / scale)); width = static_cast(scale * height);