Skip to content

Commit

Permalink
Fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeal-eth committed May 15, 2017
1 parent fcb192e commit 7f0c793
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ public void onAnimationsDone(Board3D board) {
public void onAnimationStepDone(Board3D board) {

synchronized (mBoardIterator) {
mBoardIterator.next();
// should not need this condition but...
if(mBoardIterator.getPos() < mGame.getHistory().getNumBoardCommands() - 1)
mBoardIterator.next();
}

if(mListener != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public void run() {
}, 0, 1000);

System.out.println("Setting slide adapter: " + mSlideAdapter);
mListener.getSlideList().setAdapter(mSlideAdapter);
mListener.getSlideList().setOnItemClickListener(this);
if(mListener.getSlideList() != null) {
mListener.getSlideList().setAdapter(mSlideAdapter);
mListener.getSlideList().setOnItemClickListener(this);
}
} else {
throw new RuntimeException(context.toString()
+ " must implement OnFragmentInteractionListener");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Highlight3D(Graphics3D g3d, Pipeline pipeline) {
super(g3d, pipeline, 0.1f);

alphaBlended = true;
height = 0.02f;
height = 0.0013f;

this.color = new Vector3f(1.0f, 1.0f, 0.0f);
}
Expand Down

0 comments on commit 7f0c793

Please sign in to comment.