File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ /* **************************************************************************
2
+ qgsonlineterraingenerator.cpp
3
+ --------------------------------------
4
+ Date : March 2019
5
+ Copyright : (C) 2019 by Martin Dobias
6
+ Email : wonder dot sk at gmail dot com
7
+ ***************************************************************************
8
+ * *
9
+ * This program is free software; you can redistribute it and/or modify *
10
+ * it under the terms of the GNU General Public License as published by *
11
+ * the Free Software Foundation; either version 2 of the License, or *
12
+ * (at your option) any later version. *
13
+ * *
14
+ ***************************************************************************/
15
+
1
16
#include " qgsonlineterraingenerator.h"
2
17
3
18
#include " qgsdemterraintileloader_p.h"
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ double QgsTerrainDownloader::findBestTileResolution( double requestedMupp )
73
73
74
74
void QgsTerrainDownloader::tileImageToHeightMap ( const QImage &img, QByteArray &heightMap )
75
75
{
76
- // assuming ARGB preformatted but with alpha 255
76
+ // assuming ARGB premultiplied but with alpha 255
77
77
const QRgb *rgb = reinterpret_cast <const QRgb *>( img.constBits () );
78
78
int count = img.width () * img.height ();
79
79
heightMap.resize ( sizeof ( float ) * count );
You can’t perform that action at this time.
0 commit comments