Home
last modified time | relevance | path

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

/Zephyr-latest/samples/subsys/input/draw_touch_events/src/
Dmain.c26 #define CROSS_DIM (WIDTH / CONFIG_SCREEN_WIDTH_TO_CROSS_DIM) macro
31 #define BUFFER_SIZE (CROSS_DIM * CROSS_DIM * BPP)
37 .buf_size = BUFFER_SIZE, .pitch = CROSS_DIM, .width = CROSS_DIM, .height = CROSS_DIM};
71 for (x = 0; x < WIDTH; x += CROSS_DIM) { in clear_screen()
72 for (y = 0; y < HEIGHT; y += CROSS_DIM) { in clear_screen()
86 for (x = 0; x < CROSS_DIM; x++) { in fill_cross_buffer()
87 index = BPP * (CROSS_DIM / 2 * CROSS_DIM + x); in fill_cross_buffer()
90 for (y = 0; y < CROSS_DIM; y++) { in fill_cross_buffer()
91 index = BPP * (y * CROSS_DIM + CROSS_DIM / 2); in fill_cross_buffer()
99 if (value < CROSS_DIM / 2) { in get_draw_position()
[all …]