From c51a7ba0a245ebd37b312cede42734a396396017 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 22 Aug 2008 22:43:17 +0000 Subject: [PATCH] fixed splash-screen for win32 git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1468 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/main.cpp b/src/core/main.cpp index f1ed75a71..e6cbcc0de 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -377,7 +377,12 @@ int main( int argc, char * * argv ) // splash-image - otherwise we get nasty edges etc. const QPixmap splash = embed::getIconPixmap( "splash" ); const QPoint pt = QApplication::desktop()-> - availableGeometry().center() - splash.rect().center(); +#ifdef LMMS_BUILD_LINUX + availableGeometry(). +#else + screenGeometry(). +#endif + center() - splash.rect().center(); QPixmap pm = QPixmap::grabWindow( QApplication::desktop()->winId(), pt.x(), pt.y(),