diff options
author | neonloop | 2021-04-09 20:42:46 +0000 |
---|---|---|
committer | neonloop | 2021-04-09 20:42:46 +0000 |
commit | 1aca018a2212d69fe38fda260ab76da0b4e8373e (patch) | |
tree | 3b9b9ad310a026889b66789f0d404c9e4f3bced8 | |
parent | 2c82fe36314eb865e0bb3344347e86f98f22b8f8 (diff) | |
download | snes9x2002-1aca018a2212d69fe38fda260ab76da0b4e8373e.tar.gz snes9x2002-1aca018a2212d69fe38fda260ab76da0b4e8373e.tar.bz2 snes9x2002-1aca018a2212d69fe38fda260ab76da0b4e8373e.zip |
-rw-r--r-- | shell/scalers/scaler.c | 4 |
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;
|