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.
|
||||
ppsspp.ini
|
||||
PPSSPPControls.dat
|
||||
|
||||
# Qt Linguist files
|
||||
*.qm
|
||||
|
|
|
@ -116,7 +116,7 @@ void Config::Load(const char *iniFileName)
|
|||
graphics->Get("MipMap", &bMipMap, false);
|
||||
#endif
|
||||
graphics->Get("TexScalingLevel", &iTexScalingLevel, 1);
|
||||
graphics->Get("TexScalingType", &iTexScalingType, 1);
|
||||
graphics->Get("TexScalingType", &iTexScalingType, 0);
|
||||
|
||||
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
|
||||
sound->Get("Enable", &bEnableSound, true);
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
bool bTrueColor;
|
||||
bool bMipMap;
|
||||
int iTexScalingLevel; // 1 = off, 2 = 2x, ..., 5 = 5x
|
||||
int iTexScalingType; // 0 = Bilinear, 1 = xBRZ, 2 = Hybrid
|
||||
int iTexScalingType; // 0 = xBRZ, 1 = Hybrid
|
||||
|
||||
// Sound
|
||||
bool bEnableSound;
|
||||
|
|
|
@ -275,15 +275,14 @@ void TextureScaler::Scale(u32* &data, GLenum &dstFmt, int &width, int &height, i
|
|||
|
||||
// scale
|
||||
switch(g_Config.iTexScalingType) {
|
||||
case BILINEAR:
|
||||
ScaleBilinear(factor, inputBuf, outputBuf, width, height);
|
||||
break;
|
||||
case XBRZ:
|
||||
ScaleXBRZ(factor, inputBuf, outputBuf, width, height);
|
||||
break;
|
||||
case HYBRID:
|
||||
ScaleHybrid(factor, inputBuf, outputBuf, width, height);
|
||||
break;
|
||||
default:
|
||||
ERROR_LOG(G3D, "Unknown scaling type: %d", g_Config.iTexScalingType);
|
||||
}
|
||||
|
||||
// update values accordingly
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
|
||||
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:
|
||||
void ScaleXBRZ(int factor, u32* source, u32* dest, int width, int height);
|
||||
|
|
|
@ -521,9 +521,6 @@ namespace MainWindow
|
|||
setTexScalingLevel(5);
|
||||
break;
|
||||
|
||||
case ID_TEXTURESCALING_BILINEAR:
|
||||
setTexScalingType(TextureScaler::BILINEAR);
|
||||
break;
|
||||
case ID_TEXTURESCALING_XBRZ:
|
||||
setTexScalingType(TextureScaler::XBRZ);
|
||||
break;
|
||||
|
@ -849,7 +846,6 @@ namespace MainWindow
|
|||
}
|
||||
|
||||
static const int texscalingtypeitems[] = {
|
||||
ID_TEXTURESCALING_BILINEAR,
|
||||
ID_TEXTURESCALING_XBRZ,
|
||||
ID_TEXTURESCALING_HYBRID,
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue