Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void run(){
- while(running){
- Canvas canvas = this.holder.lockCanvas();
- if(canvas == null){
- this.holder.unlockCanvasAndPost(canvas);
- continue;
- }
- this.render.canvas = canvas;
- this.render.RenderOneStep();
- this.holder.unlockCanvasAndPost(this.render.DisplayResult());
- this.view.postInvalidate();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement