diff --git a/src/data/hills.cpp b/src/data/hills.cpp index f42b450..fc8c969 100644 --- a/src/data/hills.cpp +++ b/src/data/hills.cpp @@ -9,14 +9,14 @@ #include "kulle_7_png.hpp" -unsigned const char *hills[] = { - kulle_0_png, - kulle_1_png, - kulle_2_png, - kulle_3_png, - kulle_4_png, - kulle_5_png, - kulle_6_png, - kulle_7_png, +const HillData hills[] = { + {kulle_0_png, kulle_0_png_length}, + {kulle_1_png, kulle_1_png_length}, + {kulle_2_png, kulle_2_png_length}, + {kulle_3_png, kulle_3_png_length}, + {kulle_4_png, kulle_4_png_length}, + {kulle_5_png, kulle_5_png_length}, + {kulle_6_png, kulle_6_png_length}, + {kulle_7_png, kulle_7_png_length}, }; extern const size_t hills_length = 8; diff --git a/src/data/hills.hpp b/src/data/hills.hpp index 53ec66f..e744e7e 100644 --- a/src/data/hills.hpp +++ b/src/data/hills.hpp @@ -1,4 +1,9 @@ #pragma once -extern unsigned const char *hills[]; + +struct HillData { + unsigned const char *data; + const size_t length; +}; +extern const HillData hills[]; extern const size_t hills_length;