summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-09-19 15:09:21 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-09-19 15:09:21 -0400
commitf38b57b645266a55aa5ce7869f3aa7e5fe4ad242 (patch)
treefcabf8b9942bf2aa56b7954994114c5390656470 /gfx
parent6bcb1f6dd4c578233702df10791f53c1b52193e3 (diff)
Extract SGB border graphics
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gfx.mk3
-rw-r--r--gfx/sgb_border/sgb_border.pngbin0 -> 2657 bytes
2 files changed, 3 insertions, 0 deletions
diff --git a/gfx/gfx.mk b/gfx/gfx.mk
index 7bc6404..c7785b7 100644
--- a/gfx/gfx.mk
+++ b/gfx/gfx.mk
@@ -4,11 +4,14 @@ $(dir_build)/%.2bpp: %.png | $$(dir $$@)
$(dir_build)/gfx/sprites/%.2bpp: RGBGFXFLAGS = -h
+$(dir_build)/gfx/sgb_border/sgb_border.2bpp: RGBGFXFLAGS = -x 14
+
# data_select.2bpp.xor decompresses to 2bpp-encoded data_select.png with an extra byte $33 (ASCII "3") appended
$(dir_build)/gfx/data_select/data_select.2bpp: gfx/data_select/data_select.png | $$(dir $$@)
$(RGBGFX) $(RGBGFXFLAGS) -o $@ $<
printf 3 >> $@
+
XOR_COMPRESS := tools/xor_compress
$(dir_build)/%.xor: $(dir_build)/% | $$(dir $$@) $(XOR_COMPRESS)
diff --git a/gfx/sgb_border/sgb_border.png b/gfx/sgb_border/sgb_border.png
new file mode 100644
index 0000000..b06f06e
--- /dev/null
+++ b/gfx/sgb_border/sgb_border.png
Binary files differ