Skip to content
Permalink
Browse files

Bugfix for #387 - revert to using heuristic mask on mac since automas…

…king leaves 'holes' in the splash image.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6128 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Nov 27, 2006
1 parent fdf9e31 commit 54ddd76a735dce383b1cf400fde657d60e315ce4
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/gui/main.cpp
@@ -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();
}

0 comments on commit 54ddd76

Please sign in to comment.
You can’t perform that action at this time.