Comment #1 on issue 162 by
ccan...@gmail.com: black window when resize
Attached bugdemo test_sprite_issue_162.py, punt in the test directory so it
can grab the needed resources.
When using a transition with grid, after the transition ends a resize will
show a black window.
The defect only shows when director.init is called with do_not_scale=True
The problem is in the interaction director.set_projection with
grid.GridBase._set_active(bool):
+ when the grid goes inactive, it attempts to restore the projection and
modelview matrices calling director.set_projection
+ but the correct matrices to use depends on do_not_scale
+ set_projection don't cares about the do_not_scale value, it acts
always as if do_not_scale == False
The handling of director.on_resize suggest to make director.set_projection
a placeholder, and when setting director.on_resize at the director.init
method assing the correct set projection variant.
Thats what I will try first.
Attachments:
test_sprite_issue_162.py 2.1 KB