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