aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2021-04-09 21:31:24 +0000
committerneonloop2021-04-09 21:31:24 +0000
commit974260307f98767885aa7d296bbca85031b295d9 (patch)
tree6d3b5f9cffc1dda71210ac0e3d9987b70fb7c2ec
parentccfcb9cb0300f110844b750c048caed2be36afc1 (diff)
downloadsnesemu-974260307f98767885aa7d296bbca85031b295d9.tar.gz
snesemu-974260307f98767885aa7d296bbca85031b295d9.tar.bz2
snesemu-974260307f98767885aa7d296bbca85031b295d9.zip
Include eggs' tweaks to the overscan upscaler
-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 6bd7a4f..19764b3 100644
--- a/shell/scalers/scaler.c
+++ b/shell/scalers/scaler.c
@@ -52,8 +52,8 @@ void upscale_240x208_to_320x240(uint16_t *dst, uint16_t *src, uint32_t width)
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;