diff --git a/graphic/graphicnapitest/NativeBufferTest.cpp b/graphic/graphicnapitest/NativeBufferTest.cpp index 655257182413596f73b59c517245900e49625463..1ce03836df3ea6cfae3c9f2b8ba13683dbeec8ab 100644 --- a/graphic/graphicnapitest/NativeBufferTest.cpp +++ b/graphic/graphicnapitest/NativeBufferTest.cpp @@ -30,7 +30,7 @@ public: static inline OH_NativeBuffer_Config config = { .width = 0x100, .height = 0x100, - .format = PIXEL_FMT_RGBA_8888, + .format = GRAPHIC_PIXEL_FMT_RGBA_8888, .usage = BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA, }; static inline OH_NativeBuffer_Config checkConfig = {}; diff --git a/graphic/graphicnapitest/NativeImageTest.cpp b/graphic/graphicnapitest/NativeImageTest.cpp index 8ad81b2ff174adda68f3ff8e1adcca184b15888c..17c2ff4948ea18a43c1665102d6707504aba2f0d 100644 --- a/graphic/graphicnapitest/NativeImageTest.cpp +++ b/graphic/graphicnapitest/NativeImageTest.cpp @@ -319,7 +319,7 @@ HWTEST_F(NativeImageTest, OHNativeImageUpdateSurfaceImage003, Function | MediumT std::cout << "NativeWindowHandleOpt SET_STRIDE failed" << std::endl; } code = SET_FORMAT; - int32_t format = PIXEL_FMT_RGBA_8888; + int32_t format = GRAPHIC_PIXEL_FMT_RGBA_8888; ret = NativeWindowHandleOpt(nativeWindow, code, format); if (ret != GSERROR_OK) { std::cout << "NativeWindowHandleOpt SET_FORMAT failed" << std::endl;