!176 在预览器上使能前端的rotation API

Merge pull request !176 from piggyguy_jdx/enable_rotaion_on_previewer
This commit is contained in:
openharmony_ci
2021-06-02 14:19:20 +08:00
committed by Gitee
2 changed files with 26 additions and 0 deletions
@@ -15,6 +15,9 @@
#ifndef OHOS_ACELITE_CONFIG_H
#define OHOS_ACELITE_CONFIG_H
// some features depend on the low layer configuration
#include "graphic_config.h"
/**
* ================================================================================================
* config for win simulator
@@ -138,4 +141,14 @@
#define PROFILER_ENABLE_FLAG_FILE "~/profiler_enable"
#endif
/**
* Rotation API feature
*/
#if (defined(ENABLE_ROTATE_INPUT) && (ENABLE_ROTATE_INPUT == 1))
// low layer supports
#ifndef FEATURE_ROTATION_API
#define FEATURE_ROTATION_API
#endif
#endif // (defined(ENABLE_ROTATE_INPUT) && (ENABLE_ROTATE_INPUT == 1))
#endif // OHOS_ACELITE_CONFIG_H
@@ -16,6 +16,9 @@
#ifndef OHOS_ACELITE_CONFIG_H
#define OHOS_ACELITE_CONFIG_H
// some features depend on the low layer configuration
#include "graphic_config.h"
/**
* ================================================================================================
* config for win simulator
@@ -145,4 +148,14 @@
#define PROFILER_ENABLE_FLAG_FILE "~/profiler_enable"
#endif
/**
* Rotation API feature
*/
#if (defined(ENABLE_ROTATE_INPUT) && (ENABLE_ROTATE_INPUT == 1))
// low layer supports
#ifndef FEATURE_ROTATION_API
#define FEATURE_ROTATION_API
#endif
#endif // (defined(ENABLE_ROTATE_INPUT) && (ENABLE_ROTATE_INPUT == 1))
#endif // OHOS_ACELITE_CONFIG_H