aboutsummaryrefslogtreecommitdiff
path: root/src/resource.c
diff options
context:
space:
mode:
authorDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-06-09 12:59:34 +0700
committerDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-06-10 12:34:37 +0700
commit8815700322c0c10cb0528b047b2c7604c2eeb053 (patch)
treef1ba04d1c18ac01cb671618309f015599e9da782 /src/resource.c
parentf6d84a1ead1a57574c45bb80b6fd450c5b784e09 (diff)
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.
Diffstat (limited to 'src/resource.c')
-rw-r--r--src/resource.c18
1 files changed, 18 insertions, 0 deletions
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