[ci skip][AUTO]: Automated clang-format update: 9d12fd846b (#390) (#392)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
Cocos Robot
2026-11-04 15:05:56 +08:00
committed by GitHub
parent 86fe5f41cd
commit 022be418f9
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ void UIModelProxy::uploadData() {
iBuffer->resize(static_cast<uint32_t>(capacity * sizeof(uint16_t)));
}
iBuffer->update(drawInfo->getIDataBuffer(), neededIBytes); // idata
ia->setIndexCount(indexCount); // indexCount
ia->setIndexCount(indexCount); // indexCount
// drawInfo->setModel(_model); // hack, render by model
}
@@ -218,9 +218,7 @@ void CanvasRenderingContext2D::rect(float x, float y, float w, float h) {
void CanvasRenderingContext2D::setFont(const ccstd::string &font) {
recreateBufferIfNeeded();
#if CC_PLATFORM == CC_PLATFORM_WINDOWS || CC_PLATFORM == CC_PLATFORM_QNX || CC_PLATFORM == CC_PLATFORM_LINUX \
|| CC_PLATFORM == CC_PLATFORM_ANDROID || CC_PLATFORM == CC_PLATFORM_OHOS || CC_PLATFORM == CC_PLATFORM_OPENHARMONY \
|| CC_PLATFORM == CC_PLATFORM_MACOS || CC_PLATFORM == CC_PLATFORM_IOS
#if CC_PLATFORM == CC_PLATFORM_WINDOWS || CC_PLATFORM == CC_PLATFORM_QNX || CC_PLATFORM == CC_PLATFORM_LINUX || CC_PLATFORM == CC_PLATFORM_ANDROID || CC_PLATFORM == CC_PLATFORM_OHOS || CC_PLATFORM == CC_PLATFORM_OPENHARMONY || CC_PLATFORM == CC_PLATFORM_MACOS || CC_PLATFORM == CC_PLATFORM_IOS
if (_font != font) {
_font = font;
const auto parsed = detail::parseCanvasFont(font);