Skip to content
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

clarify docstring Director.get_window_size #194

Open
ccanepa opened this issue May 6, 2014 · 0 comments
Open

clarify docstring Director.get_window_size #194

ccanepa opened this issue May 6, 2014 · 0 comments

Comments

@ccanepa
Copy link
Contributor

ccanepa commented May 6, 2014

From [email protected] on June 25, 2013 11:45:18

The docstring is fine when the user is using do_not_scale = False in director init, but unhelpful for the True case.

When not using autoscale theres a need to know the real viewport dimensions.
For that case the dostring can hint to use
director._usable_width
director._usable_height

or listen to the "on_cocos_resize" event, that will pass the same parameters

Original issue: http://code.google.com/p/los-cocos/issues/detail?id=194

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

No branches or pull requests

1 participant