Skip to content

Commit d56bccc

Browse files
author
timlinux
committedNov 27, 2006

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/gui/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,16 @@ int main(int argc, char *argv[])
458458
}
459459
else
460460
{
461+
#ifdef Q_OS_MACX
462+
//on mac automasking as done below does not work (as of qt 4.2.1)
463+
//so we do it the old way see bug #387
464+
qDebug("setting mask for mac");
465+
QPixmap myMaskPixmap(mySplashPath+QString("splash_mask.png"), 0, Qt::ThresholdDither | Qt::ThresholdAlphaDither | Qt::AvoidDither );
466+
mypSplash->setMask( myMaskPixmap.createHeuristicMask() );
467+
#else
468+
//for win and linux we can just automask and png transparency areas will be used
461469
mypSplash->setMask( myPixmap.mask() );
470+
#endif
462471
mypSplash->show();
463472
}
464473

0 commit comments

Comments
 (0)
Please sign in to comment.