aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2023-12-16 16:41:46 +0000
committerneonloop2023-12-16 16:41:46 +0000
commita2910e9de26676553a3360dd1d7bdb75ac9b0487 (patch)
tree7638bf0a9ebd248ce040080e3538b83b899e3b2c
parent9f688ec61a8f0a0140bbb3c57aaebb408f7b277c (diff)
downloadpicoarch-a2910e9de26676553a3360dd1d7bdb75ac9b0487.tar.gz
picoarch-a2910e9de26676553a3360dd1d7bdb75ac9b0487.tar.bz2
picoarch-a2910e9de26676553a3360dd1d7bdb75ac9b0487.zip
Fixes incorrect variable for h break point
-rw-r--r--scale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scale.c b/scale.c
index 682b6c1..842e4ae 100644
--- a/scale.c
+++ b/scale.c
@@ -536,7 +536,7 @@ static void scale_select_scaler(unsigned w, unsigned h, size_t pitch) {
blend_args.h_ratio_in = h / gcd_h;
blend_args.h_ratio_out = dst_h / gcd_h;
- div_h = (blend_args.w_ratio_out + 2) / 5; /* rounded integer divide by 5 */
+ div_h = (blend_args.h_ratio_out + 2) / 5; /* rounded integer divide by 5 */
blend_args.h_bp[0] = div_h;
blend_args.h_bp[1] = blend_args.h_ratio_out >> 1;