core-graphics: fix problem when rendering transparent offscreen bitmaps, use calloc instead of malloc so that memory is zeroed

db4
Slava Pestov 2009-02-01 20:32:26 -06:00
parent 93afebdb30
commit 790dee3d7e
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ FUNCTION: void* CGBitmapContextGetData ( CGContextRef c ) ;
product "uint" heap-size * ;
: malloc-bitmap-data ( dim -- alien )
bitmap-size malloc &free ;
bitmap-size 1 calloc &free ;
: bitmap-color-space ( -- color-space )
CGColorSpaceCreateDeviceRGB &CGColorSpaceRelease ;