aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2021-02-09 14:57:29 -0600
committerGitHub <noreply@github.com>2021-02-09 14:57:29 -0600
commite6ced659226d685199146719fc91b5b60890de98 (patch)
tree664ed8b3dde378de911632ea3a8ec2c46b8c54eb /include
parent8162783e8b3cb5fb6c136aba072328b3d0de76d5 (diff)
Fix expanded_desk_mods (2-5) being nonfunctional (#451)
Also fix backgrounds appearing off to the left if they are less wide than the viewport. i am in agony Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/aolayer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/aolayer.h b/include/aolayer.h
index 8510edfb..6b4fb1f8 100644
--- a/include/aolayer.h
+++ b/include/aolayer.h
@@ -73,6 +73,9 @@ public:
// Move the label itself around
void move(int ax, int ay);
+ // Move the label and center it
+ void move_and_center(int ax, int ay);
+
// This is somewhat pointless now as there's no "QMovie" object to resize, aka
// no "combo" to speak of
void combo_resize(int w, int h);
@@ -132,6 +135,8 @@ protected:
// Set the movie's frame to provided pixmap
void set_frame(QPixmap f_pixmap);
+ // Center the QLabel in the viewport based on the dimensions of f_pixmap
+ void center_pixmap(QPixmap f_pixmap);
signals:
void done();