Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:x68_launcher_3 [2020/09/07 11:33] – [bmp.c / bmp.h] john | blog:x68_launcher_3 [2020/09/07 11:51] (current) – john | ||
---|---|---|---|
Line 2: | Line 2: | ||
==== bmp.c / bmp.h ==== | ==== bmp.c / bmp.h ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
The header includes these common files: | The header includes these common files: | ||
Line 129: | Line 132: | ||
bmp = (bmpdata_t *) malloc(sizeof(bmpdata_t)); | bmp = (bmpdata_t *) malloc(sizeof(bmpdata_t)); | ||
bmp-> | bmp-> | ||
- | status = bmp_ReadImage(f, bmp, 1, 0); | + | status = bmp_ReadImageHeader(f, bmp); |
if (status != 0){ | if (status != 0){ | ||
| | ||
Line 139: | Line 142: | ||
} else ( | } else ( | ||
printf(" | printf(" | ||
- | status = bmp_ReadImage(f, bmp, 0, 1); | + | status = bmp_ReadImageData(f, bmp); |
) | ) | ||
fclose(f); | fclose(f); | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[blog: | ||
+ | |||
+ |