summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2021-04-09 20:42:46 +0000
committerneonloop2021-04-09 20:42:46 +0000
commit1aca018a2212d69fe38fda260ab76da0b4e8373e (patch)
tree3b9b9ad310a026889b66789f0d404c9e4f3bced8
parent2c82fe36314eb865e0bb3344347e86f98f22b8f8 (diff)
downloadsnes9x2002-trimui-s.tar.gz
snes9x2002-trimui-s.tar.bz2
snes9x2002-trimui-s.zip
Include eggs' tweaks to the overscan upscalerHEADtrimui-s
-rw-r--r--shell/scalers/scaler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/scalers/scaler.c b/shell/scalers/scaler.c
index 19c3cfd..3c2966e 100644
--- a/shell/scalers/scaler.c
+++ b/shell/scalers/scaler.c
@@ -53,8 +53,8 @@ void upscale_240x208_to_320x240(uint16_t *dst, uint16_t *src)
c = AVERAGE16(c, src[source+width+2]);
}
*dst++ = a;
- *dst++ = (AVERAGE16(a,b) & 0b0000000000011111) | (b & 0b1111111111100000);
- *dst++ = (b & 0b0000011111111111) | (AVERAGE16(b,c) & 0b1111100000000000);
+ *dst++ = (AVERAGE16(a,b) & 0b0000011111111111) | (b & 0b1111100000000000);
+ *dst++ = (b & 0b0000000000011111) | (AVERAGE16(b,c) & 0b1111111111100000);
*dst++ = c;
source+=3;