Add multithread checkboxes to gl UI as well

This commit is contained in:
Henrik Rydgard committed 2013-08-10 11:34:27 +02:00
1 parent a80a7690c8
commit 360210876c
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -41,7 +41,6 @@ namespace MainWindow {
}
#endif
namespace UI {
// Reads and writes value to determine the current selection.
@@ -279,6 +278,7 @@ void GameSettingsScreen::CreateViews() {
systemSettingsScroll->Add(systemSettings);
tabHolder->AddTab("System", systemSettingsScroll);
systemSettings->Add(new CheckBox(&g_Config.bJit, s->T("Dynarec", "Dynarec (JIT)")));
systemSettings->Add(new CheckBox(&g_Config.bSeparateCPUThread, s->T("Multithreaded")));
systemSettings->Add(new CheckBox(&g_Config.bFastMemory, s->T("Fast Memory", "Fast Memory (Unstable)")));
systemSettings->Add(new PopupSliderChoice(&g_Config.iLockedCPUSpeed, 0, 1000, gs->T("Unlock CPU Clock"), screenManager()));
systemSettings->Add(new CheckBox(&g_Config.bDayLightSavings, s->T("Day Light Saving")));
@@ -319,6 +319,7 @@ void GameSettingsScreen::DrawBackground(UIContext &dc) {
dc.RebindTexture();
}*/
}
void GameSettingsScreen::update(InputState &input) {
UIScreen::update(input);
g_Config.iForceMaxEmulatedFPS = cap60FPS_ ? 60 : 0;
+2
View File
@@ -1436,6 +1436,8 @@ void SystemScreen::render() {
if (g_Config.bJit)
UICheckBox(GEN_ID, x, y += stride, s->T("Fast Memory", "Fast Memory (unstable)"), ALIGN_TOPLEFT, &g_Config.bFastMemory);
UICheckBox(GEN_ID, x, y += stride, s->T("Multithreaded"), ALIGN_TOPLEFT, &g_Config.bSeparateCPUThread);
bool LockCPUSpeed = g_Config.iLockedCPUSpeed != 0;
UICheckBox(GEN_ID, x, y += stride, s->T("Unlock CPU Clock"), ALIGN_TOPLEFT, &LockCPUSpeed);
if(LockCPUSpeed) {