StarMgr.cpp   StarMgr.cpp 
skipping to change at line 20 skipping to change at line 20
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include <QTextStream> #include <QTextStream>
#include <QFile> #include <QFile>
#include <QSettings> #include <QSettings>
#include <QString> #include <QString>
#include <QRegExp> #include <QRegExp>
#include <QDebug> #include <QDebug>
#include <QFileInfo> #include <QFileInfo>
skipping to change at line 640 skipping to change at line 640
// Set temporary static variable for optimization // Set temporary static variable for optimization
const float names_brightness = labelsFader.getInterstate() * starsFa der.getInterstate(); const float names_brightness = labelsFader.getInterstate() * starsFa der.getInterstate();
// Prepare openGL for drawing many stars // Prepare openGL for drawing many stars
StelPainter sPainter(prj); StelPainter sPainter(prj);
sPainter.setFont(starFont); sPainter.setFont(starFont);
skyDrawer->preDrawPointSource(&sPainter); skyDrawer->preDrawPointSource(&sPainter);
// draw all the stars of all the selected zones // draw all the stars of all the selected zones
float rcmag_table[2*256]; // GZ: This table must be enlarged from 2x256 to many more entries.
CORRELATE IN Zonearray.cpp!
//float rcmag_table[2*256];
//float rcmag_table[2*16384];
float rcmag_table[2*4096];
for (ZoneArrayMap::const_iterator it(zoneArrays.constBegin()); it!=z oneArrays.constEnd();++it) for (ZoneArrayMap::const_iterator it(zoneArrays.constBegin()); it!=z oneArrays.constEnd();++it)
{ {
const float mag_min = 0.001f*it.value()->mag_min; const float mag_min = 0.001f*it.value()->mag_min;
const float k = (0.001f*it.value()->mag_range)/it.value()->m const float k = (0.001f*it.value()->mag_range)/it.value()->m
ag_steps; ag_steps; // MagStepIncrement
for (int i=it.value()->mag_steps-1;i>=0;--i) // GZ: add a huge number of entries to rcMag
//for (int i=it.value()->mag_steps-1;i>=0;--i)
for (int i=4096-1;i>=0;--i)
{ {
const float mag = mag_min+k*i; const float mag = mag_min+k*i;
if (skyDrawer->computeRCMag(mag,rcmag_table + 2*i)== false) if (skyDrawer->computeRCMag(mag,rcmag_table + 2*i)== false)
{ {
if (i==0) goto exit_loop; if (i==0) goto exit_loop;
} }
if (skyDrawer->getFlagPointStar()) if (skyDrawer->getFlagPointStar())
{ {
rcmag_table[2*i+1] *= starsFader.getIntersta te(); rcmag_table[2*i+1] *= starsFader.getIntersta te();
} }
 End of changes. 3 change blocks. 
5 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/