Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 12, 2012
1 parent 67f7af2 commit d9a3c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/raster/qgspalettedrasterrenderer.cpp
Expand Up @@ -171,6 +171,8 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
return outputBlock;
}

//use direct data access instead of QgsRasterBlock::setValue
//because of performance
unsigned int* outputData = ( unsigned int* )( outputBlock->data() );

size_t rasterSize = ( size_t )width * height;
Expand Down

0 comments on commit d9a3c99

Please sign in to comment.