Skip to content
Permalink
Browse files

Fix bug in quantisation code. 8Bit has now a very good visual quality

  • Loading branch information
mhugent authored and Marco Hugentobler committed Oct 2, 2012
1 parent 9cd2bb2 commit 45fe0ec812f14a7273ab5f30ec87ff923398e2db
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapserver/qgshttprequesthandler.cpp
@@ -751,7 +751,7 @@ QRgb QgsHttpRequestHandler::boxColor( const QgsColorBox& box, int boxPixels )
{
currentColor = colorBoxIt->first;
currentPixel = colorBoxIt->second;
weight = currentPixel / boxPixels;
weight = ( double )currentPixel / boxPixels;
avRed += ( qRed( currentColor ) * weight );
avGreen += ( qGreen( currentColor ) * weight );
avBlue += ( qBlue( currentColor ) * weight );

0 comments on commit 45fe0ec

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