all repos — mgba @ b8edf968a4d2d2eb09a521d05a2309ff526eb2be

mGBA Game Boy Advance Emulator

Qt: Add 59.727 fps option
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Apr 2015 05:10:13 -0700
commit

b8edf968a4d2d2eb09a521d05a2309ff526eb2be

parent

b81f045d27f5ecdfc70b068c2031c46cf10d3144

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -820,11 +820,12 @@

QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget"); fpsTargetOption->connect([this](const QVariant& value) { - emit fpsTargetChanged(value.toInt()); + emit fpsTargetChanged(value.toFloat()); }, this); fpsTargetOption->addValue(tr("15"), 15, target); fpsTargetOption->addValue(tr("30"), 30, target); fpsTargetOption->addValue(tr("45"), 45, target); + fpsTargetOption->addValue(tr("Native (59.7)"), float(GBA_ARM7TDMI_FREQUENCY) / float(VIDEO_TOTAL_LENGTH), target); fpsTargetOption->addValue(tr("60"), 60, target); fpsTargetOption->addValue(tr("90"), 90, target); fpsTargetOption->addValue(tr("120"), 120, target);