[BUG] CCListView on Android

Hi all,

CCListView extension works great on Ios>
But on Android there is a bug with the glscissor it cuts everything wrong.
I fixed it by replacing

glScissor((GLsizei)rectSelf.origin.x, (GLsizei)rectSelf.origin.y, (GLsizei)rectSelf.size.width , (GLsizei)rectSelf.size.height);

by

CCEGLView::sharedOpenGLView().setScissorInPoints((GLsizei)rectSelf.origin.x, (GLsizei)rectSelf.origin.y, (GLsizei)rectSelf.size.width , (GLsizei)rectSelf.size.height);

around line 1858 in CCListView.cpp

Hope it can helps someone :slight_smile:

friendly regards,

Seppe

thank you VERY MUCH

it’s OK in Android , but not right in ios now,so i use macro to resolve it.:slight_smile:

mark—

Thanks for your resolution:P

Seppe R wrote:

Hi all,
>
CCListView extension works great on Ios>
But on Android there is a bug with the glscissor it cuts everything wrong.
I fixed it by replacing
>
glScissor((GLsizei)rectSelf.origin.x, (GLsizei)rectSelf.origin.y, (GLsizei)rectSelf.size.width , (GLsizei)rectSelf.size.height);
>
by
>
CCEGLView::sharedOpenGLView().setScissorInPoints((GLsizei)rectSelf.origin.x, (GLsizei)rectSelf.origin.y, (GLsizei)rectSelf.size.width , (GLsizei)rectSelf.size.height);
>
around line 1858 in CCListView.cpp
>
Hope it can helps someone :slight_smile:
>
friendly regards,
>
Seppe

thanks! fix big problem