Skip to content

Commit

Permalink
Use qRgba to set pixel values
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8024 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 21, 2008
1 parent 44c67c9 commit 44e0de7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/core/qgsrenderchecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ bool QgsRenderChecker::runTest( QString theTestName )
QImage myImage( myExpectedImage.width() , myExpectedImage.height(), QImage::Format_RGB32 );
QImage myDifferenceImage( myExpectedImage.width() , myExpectedImage.height(), QImage::Format_RGB32);
QString myResultDiffImage = QDir::tempPath() + QDir::separator() + theTestName + "_result_diff.png";
myImage.fill ( QColor ( 152,219,249 ).pixel() );
myDifferenceImage.fill ( QColor ( 152,219,249 ).pixel() );
myImage.fill ( qRgb( 152,219,249 ) );
myDifferenceImage.fill ( qRgb( 152,219,249 ) );
QPainter myPainter( &myImage );
mpMapRenderer->setOutputSize( QSize ( myExpectedImage.width(),myExpectedImage.height() ),72 );
QTime myTime;
Expand Down Expand Up @@ -133,7 +133,7 @@ bool QgsRenderChecker::runTest( QString theTestName )
if (myExpectedPixel != myActualPixel)
{
++mMismatchCount;
myDifferenceImage.setPixel(x,y,QColor (255,0,0).pixel());
myDifferenceImage.setPixel(x,y,qRgb(255,0,0));
}
}
}
Expand Down

0 comments on commit 44e0de7

Please sign in to comment.