aboutsummaryrefslogtreecommitdiff
path: root/src/aolayer.cpp
diff options
context:
space:
mode:
authorin1tiate <radwoodward@vikings.grayson.edu>2021-02-14 19:21:49 -0600
committerin1tiate <radwoodward@vikings.grayson.edu>2021-02-14 19:21:49 -0600
commit97cb8cf1929302ebe4cad460cce31a0b0ecc3119 (patch)
tree75f483a7b7722a1d95b47c055077fc28f8a8f372 /src/aolayer.cpp
parent5fd3ed0fea0b62410e69ded2d96886e3635e8b17 (diff)
fix bg not resizing on reload theme
Diffstat (limited to 'src/aolayer.cpp')
-rw-r--r--src/aolayer.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index 2fac58be..e7664950 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -493,6 +493,16 @@ void AOLayer::freeze()
preanim_timer->stop();
}
+void AOLayer::kill()
+{
+ // used for when we want to ensure a file is loaded anew
+ this->stop();
+ this->clear();
+ movie_frames.clear();
+ movie_delays.clear();
+ last_path = "";
+}
+
void CharLayer::movie_ticker()
{
AOLayer::movie_ticker();