1# SDL based emulated display configuration options
2
3# Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig SDL_DISPLAY
7	bool "SDL based emulated display"
8	default y
9	depends on DT_HAS_ZEPHYR_SDL_DC_ENABLED
10	select HAS_SDL
11	help
12	  Enable SDL based emulated display compliant with display driver API.
13
14if SDL_DISPLAY
15
16choice SDL_DISPLAY_DEFAULT_PIXEL_FORMAT
17	prompt "Default pixel format"
18	default SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888
19	help
20	  Default pixel format to be used by the display
21
22	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888
23		bool "ARGB 8888"
24
25	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_888
26		bool "RGB 888"
27
28	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01
29		bool "Mono Black=0"
30
31	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10
32		bool "Mono Black=1"
33
34	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_565
35		bool "RGB 565"
36
37	config SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565
38		bool "BGR 565"
39
40endchoice
41
42config SDL_DISPLAY_ZOOM_PCT
43	int "Default zoom percentage"
44	default 100
45	range 10 10000
46	help
47	  SDL window zoom percentage to adjust readability on small screens
48
49config SDL_DISPLAY_USE_HARDWARE_ACCELERATOR
50	bool "Use hardware accelerator"
51	default y
52	help
53	  Enable hardware acceleration for graphics rendering
54
55config SDL_DISPLAY_MONO_MSB_FIRST
56	bool "Configure bit order in monochrome formats to MSB first"
57	default y
58	help
59	  If selected, set the MSB to represent the first pixel.
60	  This applies when the pixel format is MONO01/MONO10.
61
62config SDL_DISPLAY_TRANSPARENCY_GRID_CELL_SIZE
63	int "Transparency grid cell size"
64	default 8
65	help
66	  The size of the checkerboard pattern squares, in pixels.
67
68config SDL_DISPLAY_TRANSPARENCY_GRID_CELL_COLOR_1
69	hex "Transparency grid cell color 1"
70	default 0xcccccc
71	help
72	  The color of the odd cells in the transparency grid.
73
74config SDL_DISPLAY_TRANSPARENCY_GRID_CELL_COLOR_2
75	hex "Transparency grid cell color 2"
76	default 0xbbbbbb
77	help
78	  The color of the even cells in the transparency grid.
79
80endif # SDL_DISPLAY
81