From 8815700322c0c10cb0528b047b2c7604c2eeb053 Mon Sep 17 00:00:00 2001 From: Dien-Nhung Nguyen-Phu Date: Sun, 9 Jun 2024 12:59:34 +0700 Subject: Add support for .xbm bitmap file .xbm is easy to include in C as source file. It could be viewed and edited directly without need to be converted between images and C array. --- src/resource.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/resource.c (limited to 'src/resource.c') diff --git a/src/resource.c b/src/resource.c new file mode 100644 index 0000000..ed4766b --- /dev/null +++ b/src/resource.c @@ -0,0 +1,18 @@ +#include "resource.h" + +#include "res/bluetooth.xbm" +#include "res/foss-asia-2.xbm" + +xbm_t bluetooth = { + .bits = bluetooth_bits, + .w = bluetooth_width, + .h = bluetooth_height, + .fh = 11 +}; + +xbm_t splash = { + .bits = foss_asia_2_bits, + .w = foss_asia_2_width, + .h = foss_asia_2_height, + .fh = 11 +}; \ No newline at end of file -- cgit v1.2.3