aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-20 17:03:49 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-20 17:03:49 +0300
commit6dd0845f1c732e9c07afaaffb9163ba736a2ae25 (patch)
tree6d02ad40dcb1bbb45e8cb2e9e80c510421d423a7 /include
parentd3f23708c43bc132c322b778b2aa8d31a68d1c0c (diff)
Better scaling algorithm for characters of variable size
Diffstat (limited to 'include')
-rw-r--r--include/aocharmovie.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/aocharmovie.h b/include/aocharmovie.h
index adfa7b88..8aed1eb8 100644
--- a/include/aocharmovie.h
+++ b/include/aocharmovie.h
@@ -73,6 +73,9 @@ private:
// These are the X and Y values before they are fixed based on the sprite's width.
int x = 0;
int y = 0;
+ // These are the width and height values before they are fixed based on the sprite's width.
+ int f_w = 0;
+ int f_h = 0;
int frame = 0;
int max_frames = 0;