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 unknown format bug fix #4

Closed jbromley closed 13 years ago

jbromley commented 13 years ago

image-surface-get-data calls get-bytes-per-pixel, which returns an "unknown format" error for any format. The symbols in the get-bytes-per-pixel code were wrong (format-argb32, format-rgb24, etc.) Replaced the undefined symbols with :argb32 :rgb24 and :a8 to fix the problem.

tpapp commented 13 years ago

Patch applied, thanks!