CurlView displaying the reverse side of image #20

Closed
jabuel opened this Issue Apr 4, 2012 · 2 comments

Projects

None yet

2 participants

@jabuel

Hi, I found an issue,

Pre-requisite:

  • CurlView is in Single display mode. Using the right to left curl

Steps to Reproduce:

  • Turn the last page so that no page is displayed in CurlView.
  • Jump to a certain page using setCurrentIndex

Problem:
-Page is displayed in reverse side (But updates the correct image side after any touch event)
-This only happens if selecting image occurred after the last page is turned

Can you please tell how to fix this? Thanks in advance,

@harism
Owner

Should be fixed now. If you want to fix this in your own codebase, take a look on CurlView.java;

void updateBitmaps() {
...
// This line is missing.
mPageRight.setFlipTexture(false);
mPageRight.setRect(mRenderer.getPageRect(CurlRenderer.PAGE_RIGHT));
mPageRight.reset();
mRenderer.addCurlMesh(mPageRight);
...
}

@jabuel

It worked. Thank you.

@jabuel jabuel closed this May 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment