diff --git a/sdrgui/gui/sdrangelsplash.cpp b/sdrgui/gui/sdrangelsplash.cpp
index f0fc4f5c4..e56b2d1a3 100644
--- a/sdrgui/gui/sdrangelsplash.cpp
+++ b/sdrgui/gui/sdrangelsplash.cpp
@@ -17,11 +17,20 @@
// along with this program. If not, see . //
///////////////////////////////////////////////////////////////////////////////////
+#include
+
#include "sdrangelsplash.h"
SDRangelSplash::SDRangelSplash(const QPixmap& pixmap)
{
- QSplashScreen::setPixmap(pixmap);
+ int screenWidth = screen()->availableGeometry().width();
+ QPixmap pm;
+ if (pixmap.width() > screenWidth) {
+ pm = pixmap.scaledToWidth(screenWidth, Qt::SmoothTransformation);
+ } else {
+ pm = pixmap;
+ }
+ QSplashScreen::setPixmap(pm);
};
SDRangelSplash::~SDRangelSplash()