Skip to content

3.14 UIScale9Sprite not support setContentScaleFactor #3436

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

Closed
Yehsam23 opened this issue Jan 5, 2017 · 4 comments
Closed

3.14 UIScale9Sprite not support setContentScaleFactor #3436

Yehsam23 opened this issue Jan 5, 2017 · 4 comments

Comments

@Yehsam23
Copy link

Yehsam23 commented Jan 5, 2017

When i use

cc.director.setContentScaleFactor(2);

Then run "Scale9Sprite from sprite sheet" test, you will see image not correct

@zilongshanren
Copy link
Member

@Yehsam23

I added cc.director.setContentScaleFactor(2); in js-tests/main.js and I can't find any issues with the "Scale9Sprite from sprite sheet" test.

Could you provide more info?

What's wrong with the test case?

@Yehsam23
Copy link
Author

main.js
cc.director.setContentScaleFactor(2);

CCConfig.js
cc.IS_RETINA_DISPLAY_SUPPORTED = 1

@zilongshanren
Copy link
Member

@Yehsam23
Please help to test the PR, thanks.

@Yehsam23
Copy link
Author

@zilongshanren
It's fix this issue.

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants