mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Add option to use the Android hardware scaler by setting a low resolution
This commit is contained in:
1 parent
d3dce422a8
commit
76bdd84e43
6 files changed
+71
-8
No files matched your search
+7
-6
@@ -193,14 +193,17 @@ void QtHost::ShutdownSound() { g_mixer = 0; }
|
||||
#endif
|
||||
|
||||
std::string NativeQueryConfig(std::string query) {
|
||||
char temp[128];
|
||||
if (query == "screenRotation") {
|
||||
char temp[128];
|
||||
sprintf(temp, "%i", g_Config.iScreenRotation);
|
||||
return temp;
|
||||
return std::string(temp);
|
||||
} else if (query == "immersiveMode") {
|
||||
return g_Config.bImmersiveMode ? "1" : "0";
|
||||
return std::string(g_Config.bImmersiveMode ? "1" : "0");
|
||||
} else if (query == "hwScale") {
|
||||
sprintf(temp, "%i", g_Config.iAndroidHwScale);
|
||||
return std::string(temp);
|
||||
} else {
|
||||
return "";
|
||||
return std::string("");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -541,8 +544,6 @@ void NativeInitGraphics() {
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
|
||||
glstate.viewport.set(0, 0, pixel_xres, pixel_yres);
|
||||
|
||||
#ifdef _WIN32
|
||||
DSound::DSound_StartSound(MainWindow::GetHWND(), &Win32Mix);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user