(360) Add FBO on/off switch
This commit is contained in:
parent
318d7a85d6
commit
9272fdcdd6
|
@ -51,6 +51,7 @@
|
||||||
<ItemsText>Rewind:
|
<ItemsText>Rewind:
|
||||||
Gamma Correction:
|
Gamma Correction:
|
||||||
Hardware filtering:
|
Hardware filtering:
|
||||||
|
Custom Scaling/Dual Shaders
|
||||||
</ItemsText>
|
</ItemsText>
|
||||||
</Properties>
|
</Properties>
|
||||||
<XuiListItem>
|
<XuiListItem>
|
||||||
|
@ -125,6 +126,18 @@ Hardware filtering:
|
||||||
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||||
</Properties>
|
</Properties>
|
||||||
</XuiListItem>
|
</XuiListItem>
|
||||||
|
<XuiListItem>
|
||||||
|
<Properties>
|
||||||
|
<Id>control_ListItem</Id>
|
||||||
|
<Width>226.000000</Width>
|
||||||
|
<Height>45.000000</Height>
|
||||||
|
<Position>7.000000,22.000000,0.000000</Position>
|
||||||
|
<Anchor>5</Anchor>
|
||||||
|
<Show>false</Show>
|
||||||
|
<Visual>XuiButton</Visual>
|
||||||
|
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||||
|
</Properties>
|
||||||
|
</XuiListItem>
|
||||||
</XuiCommonList>
|
</XuiCommonList>
|
||||||
</XuiScene>
|
</XuiScene>
|
||||||
</XuiCanvas>
|
</XuiCanvas>
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
<ItemsText>Rewind:
|
<ItemsText>Rewind:
|
||||||
Gamma Correction:
|
Gamma Correction:
|
||||||
Hardware filtering:
|
Hardware filtering:
|
||||||
|
Cutom Scaling/Dual Shaders:
|
||||||
</ItemsText>
|
</ItemsText>
|
||||||
</Properties>
|
</Properties>
|
||||||
<XuiListItem>
|
<XuiListItem>
|
||||||
|
@ -101,6 +102,18 @@ Hardware filtering:
|
||||||
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||||
</Properties>
|
</Properties>
|
||||||
</XuiListItem>
|
</XuiListItem>
|
||||||
|
<XuiListItem>
|
||||||
|
<Properties>
|
||||||
|
<Id>control_ListItem</Id>
|
||||||
|
<Width>226.000000</Width>
|
||||||
|
<Height>45.000000</Height>
|
||||||
|
<Position>7.000000,22.000000,0.000000</Position>
|
||||||
|
<Anchor>5</Anchor>
|
||||||
|
<Show>false</Show>
|
||||||
|
<Visual>XuiButton</Visual>
|
||||||
|
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||||
|
</Properties>
|
||||||
|
</XuiListItem>
|
||||||
</XuiCommonList>
|
</XuiCommonList>
|
||||||
</XuiScene>
|
</XuiScene>
|
||||||
</XuiCanvas>
|
</XuiCanvas>
|
||||||
|
|
|
@ -137,6 +137,7 @@ HRESULT CRetroArchSettings::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||||
m_settingslist.SetText(SETTING_EMU_REWIND_ENABLED, g_settings.rewind_enable ? L"Rewind: ON" : L"Rewind: OFF");
|
m_settingslist.SetText(SETTING_EMU_REWIND_ENABLED, g_settings.rewind_enable ? L"Rewind: ON" : L"Rewind: OFF");
|
||||||
m_settingslist.SetText(SETTING_GAMMA_CORRECTION_ENABLED, g_console.gamma_correction_enable ? L"Gamma correction: ON" : L"Gamma correction: OFF");
|
m_settingslist.SetText(SETTING_GAMMA_CORRECTION_ENABLED, g_console.gamma_correction_enable ? L"Gamma correction: ON" : L"Gamma correction: OFF");
|
||||||
m_settingslist.SetText(SETTING_HARDWARE_FILTERING, set_filter_element(g_settings.video.smooth));
|
m_settingslist.SetText(SETTING_HARDWARE_FILTERING, set_filter_element(g_settings.video.smooth));
|
||||||
|
m_settingslist.SetText(SETTING_SCALE_ENABLED, g_console.fbo_enabled ? L"Custom Scaling/Dual Shaders: ON" : L"Custom Scaling/Dual Shaders: OFF");
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -418,6 +419,11 @@ HRESULT CRetroArchSettings::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled
|
||||||
g_settings.video.smooth = !g_settings.video.smooth;
|
g_settings.video.smooth = !g_settings.video.smooth;
|
||||||
m_settingslist.SetText(SETTING_HARDWARE_FILTERING, set_filter_element(g_settings.video.smooth));
|
m_settingslist.SetText(SETTING_HARDWARE_FILTERING, set_filter_element(g_settings.video.smooth));
|
||||||
break;
|
break;
|
||||||
|
case SETTING_SCALE_ENABLED:
|
||||||
|
g_console.fbo_enabled = !g_console.fbo_enabled;
|
||||||
|
m_settingslist.SetText(SETTING_SCALE_ENABLED, g_console.fbo_enabled ? L"Custom Scaling/Dual Shaders: ON" : L"Custom Scaling/Dual Shaders: OFF");
|
||||||
|
xdk360_set_fbo_enable(g_console.fbo_enabled);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,8 @@ enum
|
||||||
{
|
{
|
||||||
SETTING_EMU_REWIND_ENABLED = 0,
|
SETTING_EMU_REWIND_ENABLED = 0,
|
||||||
SETTING_GAMMA_CORRECTION_ENABLED,
|
SETTING_GAMMA_CORRECTION_ENABLED,
|
||||||
SETTING_HARDWARE_FILTERING
|
SETTING_HARDWARE_FILTERING,
|
||||||
|
SETTING_SCALE_ENABLED
|
||||||
};
|
};
|
||||||
|
|
||||||
class CRetroArch : public CXuiModule
|
class CRetroArch : public CXuiModule
|
||||||
|
|
Loading…
Reference in New Issue