summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-07-16 03:50:08 +0200
committerkdx <kikoodx@paranoici.org>2023-07-16 03:50:08 +0200
commit05a19a8c893bc7f2c951dd81ba3f94678c458a2c (patch)
treeb29d27b89ea1f9e2f7ca8779cb526588895623d9
parent2491fd4ccf6070848c515aab35170c4013b5a23e (diff)
downloadfld-05a19a8c893bc7f2c951dd81ba3f94678c458a2c.tar.gz
store image path
-rw-r--r--src/FLD.hpp1
-rw-r--r--src/image.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/FLD.hpp b/src/FLD.hpp
index 9abe34a..d4bf4bf 100644
--- a/src/FLD.hpp
+++ b/src/FLD.hpp
@@ -48,6 +48,7 @@ public:
Uint f = NONE;
};
struct Image {
+ std::string path = "";
bool valid = true;
SDL_Texture *ptr = nullptr;
int width = 0;
diff --git a/src/image.cpp b/src/image.cpp
index f9fb1e2..177968a 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -40,6 +40,7 @@ FLD::image(const std::string &path)
}
images[path] = {
+ .path = path,
.ptr = tex,
.width = width,
.height = height