提交 cb441e44 编写于 作者: Z Zhouyj_zju

Description: fix the cpp check

IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6LCDH
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: Nzhouyj <zhouyuanjie1@huawei.com>
上级 da1f5b91
......@@ -131,7 +131,7 @@ struct TriangleEdge {
TriangleEdge() {}
TriangleEdge(int16_t x1, int16_t y1, int16_t duInt, int16_t dvInt);
~TriangleEdge();
#if ENABLE_FIXED_POINT
#if defined(ENABLE_FIXED_POINT) && ENABLE_FIXED_POINT
// parameters below are Q15 fixed-point number
int64_t curX = 0;
int64_t curY = 0;
......
......@@ -780,7 +780,7 @@ int8_t UIFontVector::LoadGlyphIntoFace(uint16_t& fontId, uint8_t fontSize, uint3
{
int32_t error;
if (IsGlyphFont(unicode) != 0) {
if (fontId != GetFontId(unicode)) {
if (fontId > FONT_ID_MAX || fontId != GetFontId(unicode)) {
return INVALID_RET_VALUE;
}
error = FT_Load_Glyph(ftFaces_[fontId], unicode & (0xFFFFFF), FT_LOAD_RENDER);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册