rpav / cl-cairo2

Cairo bindings for Common Lisp
https://github.com/rpav/cl-cairo2/wiki
Boost Software License 1.0
62 stars 15 forks source link

image-surface-get-data/get-bytes-per-pixel fix #6

Closed jbromley closed 12 years ago

jbromley commented 13 years ago

Previously, get-bytes-per-pixel was returning three for RGB24 formats. However, the Cairo documentation states that RGB24 formats have 32 bits per pixel. This means that image-surface-get-data was not returning all of the data for RGB24 formats. Fixed so that now get-bytes-per-pixel returns four for RGB24 formats.

rpav commented 12 years ago

Merge conflict due to whitespace, but it's a simple fix so I'll change it by hand. Thanks,