mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Removed Bilinear texture filtering option
This commit is contained in:
parent
49fbf2b177
commit
7d2fd0ea31
8 changed files with 6 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,6 +28,7 @@ Windows/ipch
|
||||||
|
|
||||||
# For ppsspp.ini, etc.
|
# For ppsspp.ini, etc.
|
||||||
ppsspp.ini
|
ppsspp.ini
|
||||||
|
PPSSPPControls.dat
|
||||||
|
|
||||||
# Qt Linguist files
|
# Qt Linguist files
|
||||||
*.qm
|
*.qm
|
||||||
|
|
|
@ -116,7 +116,7 @@ void Config::Load(const char *iniFileName)
|
||||||
graphics->Get("MipMap", &bMipMap, false);
|
graphics->Get("MipMap", &bMipMap, false);
|
||||||
#endif
|
#endif
|
||||||
graphics->Get("TexScalingLevel", &iTexScalingLevel, 1);
|
graphics->Get("TexScalingLevel", &iTexScalingLevel, 1);
|
||||||
graphics->Get("TexScalingType", &iTexScalingType, 1);
|
graphics->Get("TexScalingType", &iTexScalingType, 0);
|
||||||
|
|
||||||
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
||||||
sound->Get("Enable", &bEnableSound, true);
|
sound->Get("Enable", &bEnableSound, true);
|
||||||
|
|
|
@ -73,7 +73,7 @@ public:
|
||||||
bool bTrueColor;
|
bool bTrueColor;
|
||||||
bool bMipMap;
|
bool bMipMap;
|
||||||
int iTexScalingLevel; // 1 = off, 2 = 2x, ..., 5 = 5x
|
int iTexScalingLevel; // 1 = off, 2 = 2x, ..., 5 = 5x
|
||||||
int iTexScalingType; // 0 = Bilinear, 1 = xBRZ, 2 = Hybrid
|
int iTexScalingType; // 0 = xBRZ, 1 = Hybrid
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
bool bEnableSound;
|
bool bEnableSound;
|
||||||
|
|
|
@ -275,15 +275,14 @@ void TextureScaler::Scale(u32* &data, GLenum &dstFmt, int &width, int &height, i
|
||||||
|
|
||||||
// scale
|
// scale
|
||||||
switch(g_Config.iTexScalingType) {
|
switch(g_Config.iTexScalingType) {
|
||||||
case BILINEAR:
|
|
||||||
ScaleBilinear(factor, inputBuf, outputBuf, width, height);
|
|
||||||
break;
|
|
||||||
case XBRZ:
|
case XBRZ:
|
||||||
ScaleXBRZ(factor, inputBuf, outputBuf, width, height);
|
ScaleXBRZ(factor, inputBuf, outputBuf, width, height);
|
||||||
break;
|
break;
|
||||||
case HYBRID:
|
case HYBRID:
|
||||||
ScaleHybrid(factor, inputBuf, outputBuf, width, height);
|
ScaleHybrid(factor, inputBuf, outputBuf, width, height);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
ERROR_LOG(G3D, "Unknown scaling type: %d", g_Config.iTexScalingType);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update values accordingly
|
// update values accordingly
|
||||||
|
|
|
@ -31,7 +31,7 @@ public:
|
||||||
|
|
||||||
void Scale(u32* &data, GLenum &dstfmt, int &width, int &height, int factor);
|
void Scale(u32* &data, GLenum &dstfmt, int &width, int &height, int factor);
|
||||||
|
|
||||||
enum { BILINEAR = 0, XBRZ= 1, HYBRID = 2 };
|
enum { XBRZ= 0, HYBRID = 1 };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ScaleXBRZ(int factor, u32* source, u32* dest, int width, int height);
|
void ScaleXBRZ(int factor, u32* source, u32* dest, int width, int height);
|
||||||
|
|
|
@ -521,9 +521,6 @@ namespace MainWindow
|
||||||
setTexScalingLevel(5);
|
setTexScalingLevel(5);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_TEXTURESCALING_BILINEAR:
|
|
||||||
setTexScalingType(TextureScaler::BILINEAR);
|
|
||||||
break;
|
|
||||||
case ID_TEXTURESCALING_XBRZ:
|
case ID_TEXTURESCALING_XBRZ:
|
||||||
setTexScalingType(TextureScaler::XBRZ);
|
setTexScalingType(TextureScaler::XBRZ);
|
||||||
break;
|
break;
|
||||||
|
@ -849,7 +846,6 @@ namespace MainWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
static const int texscalingtypeitems[] = {
|
static const int texscalingtypeitems[] = {
|
||||||
ID_TEXTURESCALING_BILINEAR,
|
|
||||||
ID_TEXTURESCALING_XBRZ,
|
ID_TEXTURESCALING_XBRZ,
|
||||||
ID_TEXTURESCALING_HYBRID,
|
ID_TEXTURESCALING_HYBRID,
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue