summaryrefslogtreecommitdiff
path: root/firmware/asm/lcd-as-memframe.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-04-06 21:23:38 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-04-06 21:26:53 -0400
commit7b25c32388770b07dce030812a46505da2696304 (patch)
tree48e6d1e4b4291e2a0a060a805f1428db09cedab7 /firmware/asm/lcd-as-memframe.c
parent76a9a524c08ffe6b76321b556b4872cf1b75d76d (diff)
downloadrockbox-7b25c32388770b07dce030812a46505da2696304.tar.gz
rockbox-7b25c32388770b07dce030812a46505da2696304.zip
lcd: Do not alias lcd_write_yuv420_lines_odither() to lcd_write_yuv420_lines()
Causes a warning with GCC8 as the protoypes are not the same. Only affects targets that lack an asm-optimized version (eg mips) Change-Id: I22e4657f3fb71ebbb915e4f290bf3670b1b87636
Diffstat (limited to 'firmware/asm/lcd-as-memframe.c')
-rw-r--r--firmware/asm/lcd-as-memframe.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/firmware/asm/lcd-as-memframe.c b/firmware/asm/lcd-as-memframe.c
index fb31fa1953..8ea9e68a39 100644
--- a/firmware/asm/lcd-as-memframe.c
+++ b/firmware/asm/lcd-as-memframe.c
@@ -25,10 +25,10 @@ static inline int clamp(int val, int min, int max)
25 return val; 25 return val;
26} 26}
27 27
28extern void lcd_write_yuv420_lines(fb_data *dst, 28void lcd_write_yuv420_lines(fb_data *dst,
29 unsigned char const * const src[3], 29 unsigned char const * const src[3],
30 int width, 30 int width,
31 int stride) 31 int stride)
32{ 32{
33 /* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv 33 /* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv
34 in the core */ 34 in the core */
@@ -176,4 +176,6 @@ void lcd_write_yuv420_lines_odither(fb_data *dst,
176 unsigned char const * const src[3], 176 unsigned char const * const src[3],
177 int width, int stride, 177 int width, int stride,
178 int x_screen, int y_screen) 178 int x_screen, int y_screen)
179__attribute__((alias("lcd_write_yuv420_lines"))); 179{
180 return lcd_write_yuv420_lines(dst, src, width, stride);
181}