src/lib/cache.c
changeset 15 01de253f3bbf
parent 13 294201975f8c
child 17 baf3fe7c6354
equal deleted inserted replaced
14:02501812b0e1 15:01de253f3bbf
   409 /**
   409 /**
   410  * Fill in a clipped region of \a width_px pixels at the given row segment
   410  * Fill in a clipped region of \a width_px pixels at the given row segment
   411  */
   411  */
   412 static inline void tile_row_fill_clip (struct pt_cache *cache, png_byte *row, size_t width_px)
   412 static inline void tile_row_fill_clip (struct pt_cache *cache, png_byte *row, size_t width_px)
   413 {
   413 {
   414     // XXX: use a defined background color, or full transparency?
   414     // XXX: use a configureable background color, or full transparency?
   415     memset(row, 0, width_px * cache->header->col_bytes);
   415     memset(row, /* 0xd7 */ 0x00, width_px * cache->header->col_bytes);
   416 }
   416 }
   417 
   417 
   418 /**
   418 /**
   419  * Write raw tile image data, directly from the cache
   419  * Write raw tile image data, directly from the cache
   420  */
   420  */