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

Scene.onDraw() - Wrong call order of window.onUpdate() and background.onDraw() #165

Open
GoogleCodeExporter opened this issue May 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link


Noticed a bug in my custom scrolling tiled background class.
If the scene.window is moving then black borders can appear due to the 
background class has finished rendering on the last scene.window position but 
the scene.window position will then be updated straight after the draw.

Solution, change the call ordering of the window.OnUpdate() and 
background.onDraw() in the scene class, OnDraw() function.  The viewport 
(window.update()) should be set before any rendering occurs.

Rokon version - 2.0.3
Android version - 1.6 through 2.2

Original issue reported on code.google.com by [email protected] on 8 Oct 2010 at 10:11

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