rulimine/stage2/lib/image.c
mintsuki 5ee53fbe4d Initial work on bitmap and background support. Add a public domain picture.
Co-authored-by: ethan <55000224+ethan4984@users.noreply.github.com>
2020-09-21 17:43:37 +02:00

14 lines
248 B
C

#include <stdint.h>
#include <stddef.h>
#include <lib/image.h>
#include <lib/bmp.h>
int open_image(struct image *image, struct file_handle *file) {
image->file = file;
if (!bmp_open_image(image, file))
return 0;
return -1;
}