Add Auto-texture scaling

Update resource.h

Update WndMainWindow.h

Update WndMainWindow.cpp

Update ppsspp.rc

position fix

Update TextureCache.cpp

Update TextureCache.cpp
This commit is contained in:
danyalzia authored and DanyalZia committed 2013-10-11 18:30:06 +05:00
1 parent 03735c13b2
commit 88c36b5b25
5 files changed
+20 -6

No files matched your search

+6 -1
View File
@@ -1437,7 +1437,12 @@ void TextureCache::LoadTextureLevel(TexCacheEntry &entry, int level, bool replac
glPixelStorei(GL_UNPACK_ALIGNMENT, texByteAlign);
glPixelStorei(GL_PACK_ALIGNMENT, texByteAlign);
int scaleFactor = g_Config.iTexScalingLevel;
int scaleFactor;
//Auto-texture scale upto 5x rendering resolution
if (g_Config.iTexScalingLevel == 0)
scaleFactor = std::min(5, g_Config.iInternalResolution);
else
scaleFactor = g_Config.iTexScalingLevel;
// Don't scale the PPGe texture.
if (entry.addr > 0x05000000 && entry.addr < 0x08800000)