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

CurlView displaying the reverse side of image #20

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

CurlView displaying the reverse side of image #20

jabuel opened this issue Apr 4, 2012 · 2 comments

Comments

@jabuel
Copy link

jabuel commented Apr 4, 2012

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 added a commit that referenced this issue May 6, 2012
@harism
Copy link
Owner

harism commented May 6, 2012

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
Copy link
Author

jabuel commented May 7, 2012

It worked. Thank you.

@jabuel jabuel closed this as completed May 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants