yash0924 / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

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 alexdarb...@gmail.com on 8 Oct 2010 at 10:11

GoogleCodeExporter commented 9 years ago
HELLO BEAUTIFUL

Original comment by bootyfinger1966@gmail.com on 5 Jun 2014 at 3:36

Attachments: