aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author浅倉麗子2020-05-20 11:45:22 -0400
committer浅倉麗子2020-05-20 11:45:22 -0400
commit0957fad527b2eb842f4da557012e375c9cfa3e3a (patch)
tree514d577c64eda5d4c624edb9d434a314f3e92e69
parentAdd bubble icon for scaling test (diff)
downloadsharpscale-0957fad527b2eb842f4da557012e375c9cfa3e3a.tar.gz
Keep bilinear filter when scaling is not applied
-rw-r--r--README.md2
-rw-r--r--main.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8ec3aec..4b2b0df 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,8 @@ Scaling and PS1 aspect ratio will not apply when
- On: system default
- Off: nearest neighbour
+Whenever scaling mode is original, or otherwise not applied, system default bilinear filtering is applied.
+
#### Enable Full HD
- On: allow framebuffers of sizes 1280x720, 1440x1080, and 1920x1080 to be submitted to the kernel
diff --git a/main.c b/main.c
index 2d0350a..1514e89 100644
--- a/main.c
+++ b/main.c
@@ -217,12 +217,13 @@ static int sceIftuSetInputFrameBuffer_hook(int plane, SceIftuPlaneState *state,
state->src_y = MIN(4 * 0x100 - 1, state->src_y);
state->dst_y = 0;
}
+
+ bilinear = (!ss_config.bilinear && bilinear == 1) ? 0 : bilinear;
}
cur_head_idx = -1;
done:
- bilinear = (!ss_config.bilinear && bilinear == 1) ? 0 : bilinear;
return TAI_NEXT(sceIftuSetInputFrameBuffer_hook, hook_ref[2], plane, state, bilinear, sync_mode);
}