[SDL] Doubts about screen Pitch and things related to it.

Alfred Reinold Baudisch alfred.baudisch at gmail.com
Tue Jun 20 14:42:00 PDT 2006


Hello Gabriel,

Thanks a lot for your explanation and help!
Now I understand all this stuff.

I want to help you too with some info one day :)

Regards,
Alfred

----------------------------
...
Row 0 starts at index 0, row 1 starts at index 8 (1*8), row 2 starts at
index 16 (2*8) and the video card is happy. The WIDTH of the surface is
still 6, but the PITCH is 8 - the "distance" between consecutive rows,
which as you see not always matches the width of a row.
.....

Hope this helps!

--Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060620/2c532d31/attachment.html 


More information about the SDL mailing list