Skip to content

Commit 20e2d81

Browse files
committed
Improve unfiltered video upscaling
1 parent f7bd0eb commit 20e2d81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

video.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3609,8 +3609,8 @@ static inline void gba_nofilter_upscale(uint16_t *dst, uint16_t *src, int h)
36093609
}
36103610

36113611
*dst++ = a;
3612-
*dst++ = (AVERAGE16(a,b) & 0b0000000000011111) | (b & 0b1111111111100000);
3613-
*dst++ = (b & 0b0000011111111111) | (AVERAGE16(b,c) & 0b1111100000000000);
3612+
*dst++ = AVERAGE16(a,b);
3613+
*dst++ = b;
36143614
*dst++ = c;
36153615
source+=3;
36163616

0 commit comments

Comments
 (0)