From 386e463942f565335f774cf2f78f55899c3204ff Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 22 Jul 2018 17:42:31 -0700 Subject: [PATCH] Also use the SDL icon for Linux --- app/streaming/session.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 5819dc1a..d7fb0af0 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -19,7 +19,12 @@ #define SDL_OS_FULLSCREEN_FLAG SDL_WINDOW_FULLSCREEN #endif +#ifdef Q_OS_WIN32 +// Scaling the icon down on Win32 looks dreadful, so render at lower res #define ICON_SIZE 32 +#else +#define ICON_SIZE 64 +#endif #include @@ -632,7 +637,7 @@ void Session::exec() 32, 4 * svgImage.width(), SDL_PIXELFORMAT_RGBA32); -#ifdef Q_OS_WIN32 +#ifndef Q_OS_DARWIN // Other platforms seem to preserve our Qt icon when creating a new window if (iconSurface != nullptr) { SDL_SetWindowIcon(m_Window, iconSurface);