Lines Matching +full:2 +full:x
44 size_t x; member
52 touch_point.x = evt->value; in touch_event_callback()
68 int x; in clear_screen() local
71 for (x = 0; x < WIDTH; x += CROSS_DIM) { in clear_screen()
73 display_write(display_dev, x, y, &buf_desc, buffer_cross_empty); in clear_screen()
81 int x; in fill_cross_buffer() local
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()
91 index = BPP * (y * CROSS_DIM + CROSS_DIM / 2); in fill_cross_buffer()
99 if (value < CROSS_DIM / 2) { in get_draw_position()
103 if (value + CROSS_DIM / 2 > upper_bound) { in get_draw_position()
107 return value - CROSS_DIM / 2; in get_draw_position()
133 touch_point_drawn.x = CROSS_DIM / 2; in main()
134 touch_point_drawn.y = CROSS_DIM / 2; in main()
135 touch_point.x = -1; in main()
143 LOG_INF("TOUCH %s X, Y: (%d, %d)", touch_point.pressed ? "PRESS" : "RELEASE", in main()
144 touch_point.x, touch_point.y); in main()
146 display_write(display_dev, get_draw_position(touch_point_drawn.x, WIDTH), in main()
150 display_write(display_dev, get_draw_position(touch_point.x, WIDTH), in main()
153 touch_point_drawn.x = touch_point.x; in main()