aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author浅倉麗子2020-06-07 15:24:41 -0400
committer浅倉麗子2020-06-07 15:24:41 -0400
commit7793a5a5867cc026d9c467722d8ac286a9db8a45 (patch)
tree7101b97a42d672b1bbfaea7ab4a68dfc6c942122
parentAdd support for 1920x1080 (diff)
downloadp4goldenhd-7793a5a5867cc026d9c467722d8ac286a9db8a45.tar.gz
Fix perspective transform for 16:9 framebuffer
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index d6eb20e..69fafa3 100644
--- a/main.c
+++ b/main.c
@@ -37,11 +37,11 @@ extern int font_sfn_len;
#ifdef FB_FHD
#define FB_PITCH 1920
#define FB_WIDTH 1920
- #define FB_HEIGHT 1088
+ #define FB_HEIGHT 1080
#else
#define FB_PITCH 1280
#define FB_WIDTH 1280
- #define FB_HEIGHT 725
+ #define FB_HEIGHT 720
#endif
#define GLZ(x) do {\
@@ -149,6 +149,9 @@ static int sceGxmSetUniformDataF_hook(
sourceData = _sourceData;
} else if (sourceData[0] == (float)FB_PITCH && sourceData[1] == (float)FB_PITCH) {
sourceData = _sourceData;
+ } else if (sourceData[0] == 960.0 && sourceData[1] == 544.0) {
+ _sourceData[1] = 540.0;
+ sourceData = _sourceData;
}
}