google-code-export / los-cocos

Automatically exported from code.google.com/p/los-cocos
Other
1 stars 0 forks source link

clarify docstring Director.get_window_size #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by ccanepacc@gmail.com on 25 Jun 2013 at 2:45