From d805435f185c0f00b53d3be17707a41aba14373c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 14 Jan 2019 22:29:58 -0500 Subject: hard-code asset sizes --- src/sdl/assets.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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 * -- cgit v1.2.3