Lines Matching full:capabilities
186 struct display_capabilities capabilities; in main() local
203 display_get_capabilities(display_dev, &capabilities); in main()
205 if (capabilities.screen_info & SCREEN_INFO_MONO_VTILED) { in main()
213 if ((capabilities.x_resolution < 3 * rect_w) || in main()
214 (capabilities.y_resolution < 3 * rect_h) || in main()
215 (capabilities.x_resolution < 8 * rect_h)) { in main()
216 rect_w = capabilities.x_resolution * 40 / 100; in main()
217 rect_h = capabilities.y_resolution * 40 / 100; in main()
218 h_step = capabilities.y_resolution * 20 / 100; in main()
222 scale = (capabilities.x_resolution / 8) / rect_h; in main()
228 if (capabilities.screen_info & SCREEN_INFO_EPD) { in main()
236 if (buf_size < (capabilities.x_resolution * h_step)) { in main()
237 buf_size = capabilities.x_resolution * h_step; in main()
240 switch (capabilities.current_pixel_format) { in main()
296 buf_desc.pitch = capabilities.x_resolution; in main()
297 buf_desc.width = capabilities.x_resolution; in main()
308 for (int idx = 0; idx < capabilities.y_resolution; idx += h_step) { in main()
314 if ((capabilities.y_resolution - idx) < h_step) { in main()
315 buf_desc.height = (capabilities.y_resolution - idx); in main()
330 x = capabilities.x_resolution - rect_w; in main()
342 x = capabilities.x_resolution - rect_w; in main()
343 y = capabilities.y_resolution - rect_h; in main()
350 y = capabilities.y_resolution - rect_h; in main()