Skip to content

Commit

Permalink
Adapted sun shading settings to be equal to map shading in night styl…
Browse files Browse the repository at this point in the history
…e for more consistency. #60
  • Loading branch information
albar965 committed Jul 27, 2018
1 parent c187e7f commit 5dba450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mapgui/mapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ MapWidget::MapWidget(MainWindow *parent)

screenSearchDistance = OptionData::instance().getMapClickSensitivity();
screenSearchDistanceTooltip = OptionData::instance().getMapTooltipSensitivity();
setSunShadingDimFactor(static_cast<double>(100 - OptionData::instance().getDisplaySunShadingDimFactor()) / 100.);
setSunShadingDimFactor(static_cast<double>(OptionData::instance().getDisplaySunShadingDimFactor()) / 100.);

// "Compass" id "compass"
// "License" id "license"
Expand Down Expand Up @@ -259,7 +259,7 @@ void MapWidget::optionsChanged()
screenSearchDistanceTooltip = OptionData::instance().getMapTooltipSensitivity();

// Updated sun shadow and force a tile refresh by changing the show status again
setSunShadingDimFactor(static_cast<double>(100 - OptionData::instance().getDisplaySunShadingDimFactor()) / 100.);
setSunShadingDimFactor(static_cast<double>(OptionData::instance().getDisplaySunShadingDimFactor()) / 100.);
setShowSunShading(showSunShading());

// reloadMap();
Expand Down
2 changes: 1 addition & 1 deletion src/options/optiondata.h
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ class OptionData
int displayThicknessCompassRose = 100;

// spinBoxOptionsDisplaySunShadeDarkness
int displaySunShadingDimFactor = 60;
int displaySunShadingDimFactor = 40;

// spinBoxSimMaxTrackPoints
int aircraftTrackMaxPoints = 20000;
Expand Down

0 comments on commit 5dba450

Please sign in to comment.