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.
This commit is contained in:
Dien-Nhung Nguyen-Phu
2024-06-09 12:59:34 +07:00
parent f6d84a1ead
commit 8815700322
8 changed files with 175 additions and 0 deletions

18
src/resource.c Normal file
View File

@@ -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
};