Home
last modified time | relevance | path

Searched refs:color_cnt (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_utils.c110 int color_cnt = 1 << bpp; in lv_sdl_alloc_palette_for_bpp() local
111 SDL_Palette * result = SDL_AllocPalette(color_cnt); in lv_sdl_alloc_palette_for_bpp()
113 for(int i = 0; i < color_cnt; i++) { in lv_sdl_alloc_palette_for_bpp()
117 SDL_SetPaletteColors(result, palette, 0, color_cnt); in lv_sdl_alloc_palette_for_bpp()