未验证 提交 b387f435 编写于 作者: O openharmony_ci 提交者: Gitee

!815 优化字体对齐

Merge pull request !815 from Zhouyj/monthly_20221018
......@@ -314,6 +314,7 @@ void RearrangeBitmap(BufferInfo& bufInfo, uint32_t fileSz)
*(--rdestBuf) = *(--rsrcBuf);
}
}
BaseGfxEngine::GetInstance()->MemoryBarrier();
}
} // namespace
......
......@@ -26,6 +26,7 @@ class UIFontAllocator {
uint32_t next;
uint32_t prev;
bool used;
uint32_t reserve;
};
public:
......
......@@ -85,6 +85,8 @@ public:
const Style& style,
OpacityType opacity,
uint8_t cap);
virtual void MemoryBarrier() {}
virtual void DrawLine(BufferInfo& dst,
const Point& start,
......
......@@ -20,7 +20,7 @@
#include "graphic_config.h"
namespace OHOS {
#pragma pack(1)
#define BIT_TO_BYTE(x) (((x) + 0x0111) >> 3)
#define BIT_TO_BYTE(x) (((x) + 0x7) >> 3)
enum UITextWildcardStaticType : uint8_t { TEXT_STATIC_STR1 = 0, TEXT_STATIC_STR2, TEXT_STATIC_STR3 };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册