display_composer_opt.c 540 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2020 Actions Technology Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <stdint.h>
  7. #include <board_cfg.h>
  8. #include <display/display_composer.h>
  9. #ifdef CONFIG_PANEL_FULL_SCREEN_OPT_AREA
  10. static const ui_region_t fs_opt_areas[] = CONFIG_PANEL_FULL_SCREEN_OPT_AREA;
  11. #endif
  12. const ui_region_t * display_composer_opt_full_screen_areas(int *num_regions)
  13. {
  14. #ifdef CONFIG_PANEL_FULL_SCREEN_OPT_AREA
  15. *num_regions = ARRAY_SIZE(fs_opt_areas);
  16. return fs_opt_areas;
  17. #else
  18. *num_regions = 0;
  19. return NULL;
  20. #endif
  21. }