Lines Matching full:cap
37 struct display_capabilities *cap = &disp_data->cap; in lvgl_pointer_process_event() local
71 if (cap->current_orientation == DISPLAY_ORIENTATION_NORMAL || in lvgl_pointer_process_event()
72 cap->current_orientation == DISPLAY_ORIENTATION_ROTATED_180) { in lvgl_pointer_process_event()
73 tmp_point.x = cap->x_resolution - tmp_point.x; in lvgl_pointer_process_event()
75 tmp_point.x = cap->y_resolution - tmp_point.x; in lvgl_pointer_process_event()
80 if (cap->current_orientation == DISPLAY_ORIENTATION_NORMAL || in lvgl_pointer_process_event()
81 cap->current_orientation == DISPLAY_ORIENTATION_ROTATED_180) { in lvgl_pointer_process_event()
82 tmp_point.y = cap->y_resolution - tmp_point.y; in lvgl_pointer_process_event()
84 tmp_point.y = cap->x_resolution - tmp_point.y; in lvgl_pointer_process_event()
89 switch (cap->current_orientation) { in lvgl_pointer_process_event()
96 point->y = cap->y_resolution - tmp_point.x; in lvgl_pointer_process_event()
99 point->x = cap->x_resolution - tmp_point.x; in lvgl_pointer_process_event()
100 point->y = cap->y_resolution - tmp_point.y; in lvgl_pointer_process_event()
103 point->x = cap->x_resolution - tmp_point.y; in lvgl_pointer_process_event()
114 } else if (point->x >= cap->x_resolution) { in lvgl_pointer_process_event()
115 point->x = cap->x_resolution - 1; in lvgl_pointer_process_event()
120 } else if (point->y >= cap->y_resolution) { in lvgl_pointer_process_event()
121 point->y = cap->y_resolution - 1; in lvgl_pointer_process_event()