mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
[ci skip][AUTO]: Automated clang-format update: 9d12fd846b (#390) (#392)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user