Well bless my nippers, it works
This commit is contained in:
parent
a5122fd773
commit
29c992358b
1 changed files with 2 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue