Skip to content

Commit a769062

Browse files
Finomniscfriedt
authored andcommitted
display: sdl: fix clear color for ARGB8888
Clear color for ARGB8888 was set to opaque white, which is an odd choice. This change makes the clear color "transparent". Signed-off-by: Martin Stumpf <[email protected]>
1 parent 8c6c761 commit a769062

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/display/display_sdl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ static int sdl_display_clear(const struct device *dev)
598598
switch (disp_data->current_pixel_format) {
599599
case PIXEL_FORMAT_ARGB_8888:
600600
size = config->width * config->height * 4U;
601-
bgcolor = 0xFFu;
602601
break;
603602
case PIXEL_FORMAT_RGB_888:
604603
size = config->width * config->height * 3U;

0 commit comments

Comments
 (0)