-
Notifications
You must be signed in to change notification settings - Fork 575
Fix ios device bad display effect #4265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- https://github.com/cocos-creator/3d-tasks/issues/11159
测试过相关的issue https://github.com/cocos-creator/3d-tasks/issues/5814 没有问题。 |
templates/ios/ViewController.mm
Outdated
CAMetalLayer *layer = (CAMetalLayer *)self.view.layer; | ||
CGSize tsize = CGSizeMake(static_cast<int>(size.width * pixelRatio), | ||
static_cast<int>(size.height * pixelRatio)); | ||
//self.view.contentScaleFactor = pixelRatio; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没用的代码就删除吧
templates/ios/ViewController.mm
Outdated
cc::EventDispatcher::dispatchOrientationChangeEvent((int) orientation); | ||
_lastOrientation = orientation; | ||
} | ||
cc::EventDispatcher::dispatchOrientationChangeEvent((int) orientation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也要 static_cast 吧
restart ci |
All reactions
Sorry, something went wrong.
All reactions
Sorry, something went wrong.
minggo
Successfully merging this pull request may close these issues.