Skip to content

Commit 54ddd76

Browse files
author
timlinux
committedNov 27, 2006
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
1 parent fdf9e31 commit 54ddd76

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.