Toggle 32 bit truecolor in option , default true
Update Core/Config.cpp
This commit is contained in:
parent
cba9baaca6
commit
c0dc85b99d
3 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,7 @@ void CConfig::Load(const char *iniFileName)
|
||||||
graphics->Get("VertexCache", &bVertexCache, true);
|
graphics->Get("VertexCache", &bVertexCache, true);
|
||||||
graphics->Get("FullScreen", &bFullScreen, false);
|
graphics->Get("FullScreen", &bFullScreen, false);
|
||||||
graphics->Get("StretchToDisplay", &bStretchToDisplay, false);
|
graphics->Get("StretchToDisplay", &bStretchToDisplay, false);
|
||||||
|
graphics->Get("TrueColor", &bTrueColor, true);
|
||||||
|
|
||||||
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
||||||
sound->Get("Enable", &bEnableSound, true);
|
sound->Get("Enable", &bEnableSound, true);
|
||||||
|
@ -134,6 +135,7 @@ void CConfig::Save()
|
||||||
graphics->Set("VertexCache", bVertexCache);
|
graphics->Set("VertexCache", bVertexCache);
|
||||||
graphics->Set("FullScreen", bFullScreen);
|
graphics->Set("FullScreen", bFullScreen);
|
||||||
graphics->Set("StretchToDisplay", bStretchToDisplay);
|
graphics->Set("StretchToDisplay", bStretchToDisplay);
|
||||||
|
graphics->Set("TrueColor", bTrueColor);
|
||||||
|
|
||||||
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
||||||
sound->Set("Enable", bEnableSound);
|
sound->Set("Enable", bEnableSound);
|
||||||
|
|
|
@ -65,6 +65,7 @@ public:
|
||||||
bool bVertexCache;
|
bool bVertexCache;
|
||||||
bool bFullScreen;
|
bool bFullScreen;
|
||||||
int iAnisotropyLevel;
|
int iAnisotropyLevel;
|
||||||
|
bool bTrueColor;
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
bool bEnableSound;
|
bool bEnableSound;
|
||||||
|
|
|
@ -333,6 +333,10 @@ void FramebufferManager::SetRenderFrameBuffer() {
|
||||||
case GE_FORMAT_565: vfb->colorDepth = FBO_565;
|
case GE_FORMAT_565: vfb->colorDepth = FBO_565;
|
||||||
case GE_FORMAT_8888: vfb->colorDepth = FBO_8888;
|
case GE_FORMAT_8888: vfb->colorDepth = FBO_8888;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_Config.bTrueColor)
|
||||||
|
vfb->colorDepth = FBO_8888;
|
||||||
|
|
||||||
//#ifdef ANDROID
|
//#ifdef ANDROID
|
||||||
// vfb->colorDepth = FBO_8888;
|
// vfb->colorDepth = FBO_8888;
|
||||||
//#endif
|
//#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue