mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Bugfix for #387 - revert to using heuristic mask on mac since automasking leaves 'holes' in the splash image.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6128 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
fdf9e31c7e
commit
54ddd76a73
@ -458,7 +458,16 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef Q_OS_MACX
|
||||
//on mac automasking as done below does not work (as of qt 4.2.1)
|
||||
//so we do it the old way see bug #387
|
||||
qDebug("setting mask for mac");
|
||||
QPixmap myMaskPixmap(mySplashPath+QString("splash_mask.png"), 0, Qt::ThresholdDither | Qt::ThresholdAlphaDither | Qt::AvoidDither );
|
||||
mypSplash->setMask( myMaskPixmap.createHeuristicMask() );
|
||||
#else
|
||||
//for win and linux we can just automask and png transparency areas will be used
|
||||
mypSplash->setMask( myPixmap.mask() );
|
||||
#endif
|
||||
mypSplash->show();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user