aboutsummaryrefslogtreecommitdiff
path: root/shell/scalers/scaler.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/scalers/scaler.c')
-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;