Skip to content
Permalink
Browse files
Use qRgba to set pixel values
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8024 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 21, 2008
1 parent 563b623 commit 239fbdcf4a295b84c925b204411ebc220bd6e6ac
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/core/qgsrenderchecker.cpp
@@ -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;
@@ -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));
}
}
}

0 comments on commit 239fbdc

Please sign in to comment.