Skip to content

Commit be3cc07

Browse files
committed
wip
1 parent 85ee257 commit be3cc07

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/celestia/celestiacore.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,14 +1467,14 @@ void CelestiaCore::charEntered(const char *c_p, int modifiers)
14671467
break;
14681468

14691469
case '[':
1470-
setExposure(sim->getExposure() * 0.1);
1471-
auto buf = fmt::format(loc, _("Exposure: {:.2f}"), sim->getExposure());
1470+
setExposure(sim->getExposure() * 0.5);
1471+
auto buf = fmt::format(loc, _("Exposure time: {:.2f}"), sim->getExposure());
14721472
flash(buf);
14731473
break;
14741474

14751475
case ']':
1476-
setExposure(sim->getExposure() * 10.0);
1477-
auto buf = fmt::format(loc, _("Exposure: {:.2f}"), sim->getExposure());
1476+
setExposure(sim->getExposure() * 2.0);
1477+
auto buf = fmt::format(loc, _("Exposure time: {:.2f}"), sim->getExposure());
14781478
flash(buf);
14791479
break;
14801480

src/celestia/qt/qtcelestiaactions.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ CelestiaActions::CelestiaActions(QObject* parent,
219219
connect(mediumResAction, SIGNAL(triggered()), this, SLOT(slotSetTextureResolution()));
220220
connect(highResAction, SIGNAL(triggered()), this, SLOT(slotSetTextureResolution()));
221221

222-
increaseExposureAction = new QAction(_("Increase Exposure Time"), this);
223-
increaseExposureAction->setData(10.0);
224-
increaseExposureAction->setShortcut(QString("]"));
225222
decreaseExposureAction = new QAction(_("Decrease Exposure Time"), this);
226-
decreaseExposureAction->setData(0.1);
223+
decreaseExposureAction->setData(0.5);
227224
decreaseExposureAction->setShortcut(QString("["));
225+
increaseExposureAction = new QAction(_("Increase Exposure Time"), this);
226+
increaseExposureAction->setData(2.0);
227+
increaseExposureAction->setShortcut(QString("]"));
228228
connect(increaseExposureAction, SIGNAL(triggered()), this, SLOT(slotAdjustExposure()));
229229
connect(decreaseExposureAction, SIGNAL(triggered()), this, SLOT(slotAdjustExposure()));
230230

@@ -384,10 +384,10 @@ CelestiaActions::slotAdjustExposure()
384384

385385
QString notification;
386386

387-
float newExposure = qBound(0.0f, appCore->getSimulation()->getExposure() + change * 2, 1000.0f);
387+
float newExposure = qBound(0.0f, appCore->getSimulation()->getExposure() * change, 1000.0f);
388388
appCore->setExposure(newExposure);
389389

390-
notification = QString(_("Exposure: %L1")).arg(newExposure, 0, 'f', 2);
390+
notification = QString(_("Exposure time: %L1")).arg(newExposure, 0, 'f', 2);
391391

392392
appCore->flash(notification.toUtf8().data());
393393
}

0 commit comments

Comments
 (0)