Well bless my nippers, it works

This commit is contained in:
XANTRONIX Development 2016-05-07 20:43:41 -05:00
parent a5122fd773
commit 29c992358b

View file

@ -29,7 +29,8 @@ static uint8_t *buf_malloc(png_t *png) {
static void image_copy(cammy_sram_frame *frame, uint8_t *buf) {
size_t x, y;
memset(&frame->photo, '\0', sizeof(cammy_sram_photo));
memset(&frame->thumb, '\xff', sizeof(cammy_sram_thumb));
memset(&frame->photo, '\x00', sizeof(cammy_sram_photo));
for (y=0; y<CAMMY_SRAM_PHOTO_HEIGHT; y++) {
for (x=0; x<CAMMY_SRAM_PHOTO_WIDTH; x++) {