merge v3.8.5

This commit is contained in:
minggo
2024-12-23 10:34:45 +08:00
68 changed files with 4822 additions and 4255 deletions
@@ -53,14 +53,14 @@ Screen::Orientation Screen::getDeviceOrientation() const {
value = dpi.As<Napi::Number>().Int32Value();
}
if(value == 0) {
if (value == 0) {
return Orientation::PORTRAIT;
} else if(value == 1) {
return Orientation::LANDSCAPE_RIGHT;
} else if(value == 2) {
return Orientation::PORTRAIT_UPSIDE_DOWN;
} else if(value == 3) {
} else if (value == 1) {
return Orientation::LANDSCAPE_LEFT;
} else if (value == 2) {
return Orientation::PORTRAIT_UPSIDE_DOWN;
} else if (value == 3) {
return Orientation::LANDSCAPE_RIGHT;
}
CC_ASSERT(false);
return Orientation::PORTRAIT;
@@ -89,5 +89,4 @@ void Screen::setDisplayStats(bool isShow) {
se::ScriptEngine::getInstance()->evalString(commandBuf);
}
} // namespace cc