mirror of
https://github.com/openbsd/src.git
synced 2026-04-25 22:56:14 +00:00
drm/draw: fix color truncation in drm_draw_fill24
From Francesco Valla 33fee60d39b7bdea7167220d49e799701b2f4897 in linux-6.12.y/6.12.55 095232711f23179053ca26bcf046ca121a91a465 in mainline linux
This commit is contained in:
@@ -125,7 +125,7 @@ EXPORT_SYMBOL(drm_draw_fill16);
|
||||
|
||||
void drm_draw_fill24(struct iosys_map *dmap, unsigned int dpitch,
|
||||
unsigned int height, unsigned int width,
|
||||
u16 color)
|
||||
u32 color)
|
||||
{
|
||||
unsigned int y, x;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ void drm_draw_fill16(struct iosys_map *dmap, unsigned int dpitch,
|
||||
|
||||
void drm_draw_fill24(struct iosys_map *dmap, unsigned int dpitch,
|
||||
unsigned int height, unsigned int width,
|
||||
u16 color);
|
||||
u32 color);
|
||||
|
||||
void drm_draw_fill32(struct iosys_map *dmap, unsigned int dpitch,
|
||||
unsigned int height, unsigned int width,
|
||||
|
||||
Reference in New Issue
Block a user