aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author浅倉麗子2020-04-08 23:40:15 -0400
committer浅倉麗子2020-04-08 23:40:15 -0400
commit273244ccf6f49a9e97e0a59774ce8b9d2290e6c7 (patch)
treeaf629446db141402b20d9ffbe2c972cab451bd0d
parentLimit Iftu scaling to 4x (diff)
downloadsharpscale-273244ccf6f49a9e97e0a59774ce8b9d2290e6c7.tar.gz
Enable "display area settings" in original mode
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index 72f9cda..967aabe 100644
--- a/main.c
+++ b/main.c
@@ -218,9 +218,11 @@ int module_start(SceSize argc, const void *argv) { (void)argc; (void)argv;
GLZ(HOOK_OFFSET(1, minfo.modid, 0x004, prepare_fb_compat));
GLZ(HOOK_IMPORT(2, "SceDisplay", 0xCAFCFE50, 0x7CE0C4DA, sceIftuSetInputFrameBuffer));
- GLZ(HOOK_EXPORT(3, "SceDisplay", 0x9FED47AC, 0xEB390A76, sceDisplaySetScaleConf));
- LOG("Disable scaling head 1 fb 0 ret %08X\n", ksceDisplaySetScaleConf(1.0f, 1, 0, 0));
- LOG("Disable scaling head 1 fb 1 ret %08X\n", ksceDisplaySetScaleConf(1.0f, 1, 1, 0));
+ if (ss_config.mode != SHARPSCALE_MODE_ORIGINAL) {
+ GLZ(HOOK_EXPORT(3, "SceDisplay", 0x9FED47AC, 0xEB390A76, sceDisplaySetScaleConf));
+ LOG("Disable scaling head 1 fb 0 ret %08X\n", ksceDisplaySetScaleConf(1.0f, 1, 0, 0));
+ LOG("Disable scaling head 1 fb 1 ret %08X\n", ksceDisplaySetScaleConf(1.0f, 1, 1, 0));
+ }
return SCE_KERNEL_START_SUCCESS;