mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
merge v3.8.5
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user