mirror of https://github.com/mgba-emu/mgba.git
Qt: FPS target option is now a double
This commit is contained in:
parent
7bc834526a
commit
04c6080f24
1
CHANGES
1
CHANGES
|
@ -18,6 +18,7 @@ Features:
|
|||
- Load/save the most recent savestate slot
|
||||
- Support varible speed (PWM) rumble
|
||||
- Ability to cap fast forward speed
|
||||
- Finer control over FPS target
|
||||
Bugfixes:
|
||||
- ARM7: Fix SWI and IRQ timings
|
||||
- GBA Audio: Force audio FIFOs to 32-bit
|
||||
|
|
|
@ -123,6 +123,10 @@ void SettingsView::saveSetting(const char* key, const QComboBox* field) {
|
|||
saveSetting(key, field->lineEdit());
|
||||
}
|
||||
|
||||
void SettingsView::saveSetting(const char* key, const QDoubleSpinBox* field) {
|
||||
saveSetting(key, field->cleanText());
|
||||
}
|
||||
|
||||
void SettingsView::saveSetting(const char* key, const QLineEdit* field) {
|
||||
saveSetting(key, field->text());
|
||||
}
|
||||
|
@ -149,6 +153,11 @@ void SettingsView::loadSetting(const char* key, QComboBox* field) {
|
|||
loadSetting(key, field->lineEdit());
|
||||
}
|
||||
|
||||
void SettingsView::loadSetting(const char* key, QDoubleSpinBox* field) {
|
||||
QString option = loadSetting(key);
|
||||
field->setValue(option.toDouble());
|
||||
}
|
||||
|
||||
void SettingsView::loadSetting(const char* key, QLineEdit* field) {
|
||||
QString option = loadSetting(key);
|
||||
field->setText(option);
|
||||
|
|
|
@ -35,6 +35,7 @@ private:
|
|||
|
||||
void saveSetting(const char* key, const QAbstractButton*);
|
||||
void saveSetting(const char* key, const QComboBox*);
|
||||
void saveSetting(const char* key, const QDoubleSpinBox*);
|
||||
void saveSetting(const char* key, const QLineEdit*);
|
||||
void saveSetting(const char* key, const QSlider*);
|
||||
void saveSetting(const char* key, const QSpinBox*);
|
||||
|
@ -42,6 +43,7 @@ private:
|
|||
|
||||
void loadSetting(const char* key, QAbstractButton*);
|
||||
void loadSetting(const char* key, QComboBox*);
|
||||
void loadSetting(const char* key, QDoubleSpinBox*);
|
||||
void loadSetting(const char* key, QLineEdit*);
|
||||
void loadSetting(const char* key, QSlider*);
|
||||
void loadSetting(const char* key, QSpinBox*);
|
||||
|
|
|
@ -199,12 +199,15 @@
|
|||
<item row="6" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QSpinBox" name="fpsTarget">
|
||||
<widget class="QDoubleSpinBox" name="fpsTarget">
|
||||
<property name="minimum">
|
||||
<double>0.010000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>240</number>
|
||||
<double>240.000000000000000</double>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>60</number>
|
||||
<double>60.000000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue