aboutsummaryrefslogtreecommitdiffstats
path: root/patterns
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-12 04:08:50 +0100
committerLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-12 04:08:50 +0100
commit2f8a59cd29a11fca09f9dbefb18e024285b4b872 (patch)
treecb83a2ff85afad7a953b95af29762bf02d29167a /patterns
parentcd4f4ebb6bae9e7b7d8ffb334d0ea1c8c90978f0 (diff)
downloadcosin25-invite-mountainbytes-2f8a59cd29a11fca09f9dbefb18e024285b4b872.tar.gz
cosin25-invite-mountainbytes-2f8a59cd29a11fca09f9dbefb18e024285b4b872.tar.bz2
cosin25-invite-mountainbytes-2f8a59cd29a11fca09f9dbefb18e024285b4b872.tar.lz
cosin25-invite-mountainbytes-2f8a59cd29a11fca09f9dbefb18e024285b4b872.zip

fix: make pattern work

Diffstat (limited to 'patterns')
-rw-r--r--patterns/font.hexpat8
1 files changed, 5 insertions, 3 deletions
diff --git a/patterns/font.hexpat b/patterns/font.hexpat
index 4a6a8c4..b1ebe61 100644
--- a/patterns/font.hexpat
+++ b/patterns/font.hexpat
@@ -7,12 +7,14 @@
import std.sys;
import type.magic;
+/* doesnt work idk why imhex is dying
struct PixelRow<auto width> {
- u8 columns[width - 1] [[name("Row"), inline]];
+ u8 columns[width] [[name("Row"), inline]];
};
struct ImageData<auto width> {
PixelRow<width> rows[while(!std::mem::eof())] [[name("Rows"), inline]];
};
+*/
struct Offset {
/** The X Offset of the character */
s32 x [[name("X"), comment("The X offset of the character's pixel data"), color("ff99ff")]];
@@ -26,9 +28,9 @@ struct CharBmp {
/** The width of each line of the drawn character */
Offset offset [[name("Offset"), comment("Indicates the offset of the character's drawn data, in pixels"), color("cc99bb")]];
/** The horizontal offset that the origin of the next glyph should be from the origin of this glyph. */
- float advance_width [[name("Offset"), comment("Indicates the offset of the character's drawn data, in pixels"), color("99aaff")]];
+ s32 advance_width [[name("Offset"), comment("Indicates the offset of the character's drawn data, in pixels"), color("99aaff")]];
/** Table of contents entries */
- ImageData<width> imageData[width] [[name("Content")]];
+ u8 imageData[while(!std::mem::eof())] [[name("Content")]];
};
CharBmp charbmp @ 0x00 [[name("CharBmp")]];