diff --git a/src/egl/drivers/dri2/platform_ohos.h b/src/egl/drivers/dri2/platform_ohos.h index dfec8bd38a7767a92e7f9f0fa07b1bda1380c0ec..e672f159ee1f364c65a72226c171a458fa0a0bb3 100644 --- a/src/egl/drivers/dri2/platform_ohos.h +++ b/src/egl/drivers/dri2/platform_ohos.h @@ -35,8 +35,8 @@ #include +#include "surface_type.h" #include "egl_dri2.h" -#include "display_type.h" #include "window.h" #define ANativeWindow NativeWindow @@ -56,7 +56,7 @@ ANativeWindow_release(struct ANativeWindow *window) static inline int32_t ANativeWindow_getFormat(struct ANativeWindow *window) { - int32_t format = PIXEL_FMT_RGBA_8888; + int32_t format = OHOS::GRAPHIC_PIXEL_FMT_RGBA_8888; int32_t res = NativeWindowHandleOpt(window, GET_FORMAT, &format); return res == 0 ? format : res; }