Skip to content

Commit

Permalink
void* for bitmap buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Nov 12, 2023
1 parent efe2b8b commit 1b8b21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libhxcfe/sources/loaders/bmp_loader/bmp_disk_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int BMP_Disk_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppydis
bdata.nb_color = 16;
bdata.xsize = td->xsize;
bdata.ysize = td->ysize;
bdata.data = (uint32_t*)ptr;
bdata.data = (void*)ptr;
bdata.palette = 0;

bmp16b_write(filename,&bdata);
Expand All @@ -171,7 +171,7 @@ int BMP_Disk_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppydis
bdata.nb_color = 8;
bdata.xsize = td->xsize;
bdata.ysize = td->ysize;
bdata.data = (uint32_t*)ptrchar;
bdata.data = (void*)ptrchar;
bdata.palette = (unsigned char*)&pal;

bmpRLE8b_write(filename,&bdata);
Expand Down
4 changes: 2 additions & 2 deletions libhxcfe/sources/loaders/bmp_loader/bmp_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static int BMP_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppyd
bdata.nb_color = 16;
bdata.xsize = td->xsize * nb_col;
bdata.ysize = td->ysize * nb_row;
bdata.data = (uint32_t*)ptr;
bdata.data = (void*)ptr;
bdata.palette = 0;

bmp16b_write(filename,&bdata);
Expand All @@ -325,7 +325,7 @@ static int BMP_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppyd
bdata.nb_color = 8;
bdata.xsize = td->xsize * nb_col;
bdata.ysize = td->ysize * nb_row;
bdata.data = (uint32_t*)ptrchar;
bdata.data = (void*)ptrchar;
bdata.palette = (unsigned char*)&pal;

bmpRLE8b_write(filename,&bdata);
Expand Down

0 comments on commit 1b8b21a

Please sign in to comment.