From 04d0a6196844cb489e7c761005f56eed9d17e567 Mon Sep 17 00:00:00 2001 From: Peter Thoman Date: Tue, 30 Apr 2013 03:46:27 +0200 Subject: [PATCH] Added config option for xBR texture scaling --- Core/Config.cpp | 3 +++ Core/Config.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index faf8d26457..fb4f91981d 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -113,6 +113,8 @@ void Config::Load(const char *iniFileName) #else graphics->Get("MipMap", &bMipMap, false); #endif + graphics->Get("XBRZTexScalingLevel", &iXBRZTexScalingLevel, 0); + IniFile::Section *sound = iniFile.GetOrCreateSection("Sound"); sound->Get("Enable", &bEnableSound, true); @@ -192,6 +194,7 @@ void Config::Save() graphics->Set("StretchToDisplay", bStretchToDisplay); graphics->Set("TrueColor", bTrueColor); graphics->Set("MipMap", bMipMap); + graphics->Set("XBRZTexScalingLevel", iXBRZTexScalingLevel); IniFile::Section *sound = iniFile.GetOrCreateSection("Sound"); sound->Set("Enable", bEnableSound); diff --git a/Core/Config.h b/Core/Config.h index ba59ed41cd..f004956e20 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -64,13 +64,14 @@ public: int iWindowX; int iWindowY; int iWindowZoom; // for Windows - bool SSAntiAliasing; //for Windows, too + bool SSAntiAliasing; // for Windows, too bool bVertexCache; bool bFullScreen; int iAnisotropyLevel; bool bTrueColor; bool bMipMap; bool bAnisotropicFiltering; + int iXBRZTexScalingLevel; // 0 = 1 = off, 2 = 2xBRZ, 3 = 3xBRZ, ..., 5 = 5xBRZ // Sound bool bEnableSound;