aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-14 22:29:58 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-14 22:29:58 -0500
commitd805435f185c0f00b53d3be17707a41aba14373c (patch)
tree8c940f78e294b3c7732958ccc04d701de235202c
parent670c17276ab621b5a1645fd748fd85395c427497 (diff)
downloadsok-d805435f185c0f00b53d3be17707a41aba14373c.tar.bz2
sok-d805435f185c0f00b53d3be17707a41aba14373c.zip
hard-code asset sizes
-rw-r--r--src/sdl/assets.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sdl/assets.c b/src/sdl/assets.c
index 12c7be8..abb9906 100644
--- a/src/sdl/assets.c
+++ b/src/sdl/assets.c
@@ -191,7 +191,6 @@ static const uint8_t sprites_png[] = {
0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};
-static const size_t sprites_png_len = 2256;
static const uint8_t roboto_ttf[] = {
0x00, 0x01, 0x00, 0x00, 0x00, 0x12, 0x01, 0x00, 0x00, 0x04, 0x00, 0x20,
0x47, 0x44, 0x45, 0x46, 0xb4, 0x42, 0xb0, 0x82, 0x00, 0x02, 0x28, 0xdc,
@@ -14501,15 +14500,14 @@ static const uint8_t roboto_ttf[] = {
0x02, 0x42, 0x02, 0x43, 0x02, 0x44, 0x00, 0x02, 0x00, 0x01, 0x00, 0x14,
0x00, 0x1d, 0x00, 0x00
};
-static const size_t roboto_ttf_len = 171676;
static const asset_t
ASSETS[] = {{
.buf = sprites_png,
- .len = sprites_png_len,
+ .len = sizeof(sprites_png),
}, {
.buf = roboto_ttf,
- .len = roboto_ttf_len,
+ .len = sizeof(roboto_ttf),
}};
const asset_t *