#2 getPixelData

open
nobody
None
5
2006-01-19
2006-01-19
Champ Yen
No

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

Discussion