SWIG_getPixelDirectByteBuffer in SDLVideo_wrap.c buffer = (*jenv)->NewDirectByteBuffer(jenv, surface->pixels, surface->w * surface->h * surface->format->BytesPerPixel);
where surface->w should be surface->pitch
Log in to post a comment.