Qt: Add native FPS button to settings view
Vicki Pfau vi@endrift.com
Wed, 22 May 2019 11:29:24 -0700
3 files changed,
20 insertions(+),
8 deletions(-)
M
CHANGES
→
CHANGES
@@ -69,6 +69,7 @@ - Qt: Open a message box for Qt frontend errors
- GBA Video: Clean up dead code in sprite rendering loop - FFmpeg: Support audio-only recording - Qt: Increase maximum magnifications and scaling + - Qt: Add native FPS button to settings view 0.7.1: (2019-02-24) Bugfixes:
M
src/platform/qt/SettingsView.cpp
→
src/platform/qt/SettingsView.cpp
@@ -57,6 +57,10 @@ m_ui.muteFf->setChecked(e);
} }); + connect(m_ui.nativeGB, &QAbstractButton::pressed, [this]() { + m_ui.fpsTarget->setValue(double(GBA_ARM7TDMI_FREQUENCY) / double(VIDEO_TOTAL_LENGTH)); + }); + if (m_ui.savegamePath->text().isEmpty()) { m_ui.savegameSameDir->setChecked(true); }
M
src/platform/qt/SettingsView.ui
→
src/platform/qt/SettingsView.ui
@@ -6,8 +6,8 @@ <property name="geometry">
<rect> <x>0</x> <y>0</y> - <width>790</width> - <height>686</height> + <width>849</width> + <height>753</height> </rect> </property> <property name="sizePolicy">@@ -399,21 +399,21 @@ </widget>
</item> </layout> </item> - <item row="9" column="0" colspan="2"> + <item row="10" column="0" colspan="2"> <widget class="Line" name="line_5"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> - <item row="10" column="0"> + <item row="11" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>Sync:</string> </property> </widget> </item> - <item row="10" column="1"> + <item row="11" column="1"> <layout class="QHBoxLayout" name="horizontalLayout_10"> <item> <widget class="QCheckBox" name="videoSync">@@ -431,24 +431,31 @@ </widget>
</item> </layout> </item> - <item row="11" column="1"> + <item row="12" column="1"> <widget class="QCheckBox" name="lockAspectRatio"> <property name="text"> <string>Lock aspect ratio</string> </property> </widget> </item> - <item row="12" column="1"> + <item row="13" column="1"> <widget class="QCheckBox" name="lockIntegerScaling"> <property name="text"> <string>Force integer scaling</string> </property> </widget> </item> - <item row="13" column="1"> + <item row="14" column="1"> <widget class="QCheckBox" name="resampleVideo"> <property name="text"> <string>Bilinear filtering</string> + </property> + </widget> + </item> + <item row="9" column="1"> + <widget class="QPushButton" name="nativeGB"> + <property name="text"> + <string>Native (59.7275)</string> </property> </widget> </item>