core-graphics: fix problem when rendering transparent offscreen bitmaps, use calloc instead of malloc so that memory is zeroed
parent
93afebdb30
commit
790dee3d7e
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue