From 022be418f9c741fb7d137b5dbba8d3f11cf4778f Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:05:56 +0800 Subject: [PATCH] [ci skip][AUTO]: Automated clang-format update: 9d12fd846b837d707bc14b6b063b957388a4faa8 (#390) (#392) Co-authored-by: cocos-robot --- native/cocos/2d/renderer/UIModelProxy.cpp | 2 +- .../interfaces/modules/canvas/CanvasRenderingContext2D.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/native/cocos/2d/renderer/UIModelProxy.cpp b/native/cocos/2d/renderer/UIModelProxy.cpp index 6fb81cd912..5370840b7c 100644 --- a/native/cocos/2d/renderer/UIModelProxy.cpp +++ b/native/cocos/2d/renderer/UIModelProxy.cpp @@ -135,7 +135,7 @@ void UIModelProxy::uploadData() { iBuffer->resize(static_cast(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 } diff --git a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp index d462ac2d57..7c32ac9b9a 100644 --- a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp +++ b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.cpp @@ -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);