Skip to content
Permalink
Browse files

Add missing copyright header

  • Loading branch information
wonder-sk committed Mar 18, 2019
1 parent c9ab24f commit 407952f95b27fbd28203a1ebe82deb886922027a
Showing with 16 additions and 1 deletion.
  1. +15 −0 src/3d/terrain/qgsonlineterraingenerator.cpp
  2. +1 −1 src/3d/terrain/qgsterraindownloader.cpp
@@ -1,3 +1,18 @@
/***************************************************************************
qgsonlineterraingenerator.cpp
--------------------------------------
Date : March 2019
Copyright : (C) 2019 by Martin Dobias
Email : wonder dot sk at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgsonlineterraingenerator.h"

#include "qgsdemterraintileloader_p.h"
@@ -73,7 +73,7 @@ double QgsTerrainDownloader::findBestTileResolution( double requestedMupp )

void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap )
{
// assuming ARGB preformatted but with alpha 255
// assuming ARGB premultiplied but with alpha 255
const QRgb *rgb = reinterpret_cast<const QRgb *>( img.constBits() );
int count = img.width() * img.height();
heightMap.resize( sizeof( float ) * count );

0 comments on commit 407952f

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