fixed splash-screen for win32

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1468 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-22 22:43:17 +00:00
parent 364b4a99c0
commit c51a7ba0a2

View File

@@ -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(),