Skip to content

Commit

Permalink
Bugfix for #387 - revert to using heuristic mask on mac since automas…
Browse files Browse the repository at this point in the history
…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 committed Nov 27, 2006
1 parent fdf9e31 commit 54ddd76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 54ddd76

Please sign in to comment.