diff --git a/interfaces/kits/gfx_utils/color.h b/interfaces/kits/gfx_utils/color.h index 0da65d5..622ae0f 100644 --- a/interfaces/kits/gfx_utils/color.h +++ b/interfaces/kits/gfx_utils/color.h @@ -144,7 +144,7 @@ struct Rgba { float blue; float alpha; - Rgba() {} + Rgba() : red(0), green(0), blue(0), alpha(0) {} /** * @brief Rgba Constructor. diff --git a/interfaces/kits/gfx_utils/graphic_buffer.h b/interfaces/kits/gfx_utils/graphic_buffer.h index 0d15a53..129615a 100644 --- a/interfaces/kits/gfx_utils/graphic_buffer.h +++ b/interfaces/kits/gfx_utils/graphic_buffer.h @@ -48,7 +48,7 @@ namespace OHOS { */ struct BufferInfo { Rect rect; - int32_t stride; + uint32_t stride; void* phyAddr; void* virAddr; uint16_t width;