From e6ced659226d685199146719fc91b5b60890de98 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Tue, 9 Feb 2021 14:57:29 -0600 Subject: 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 --- include/aolayer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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(); -- cgit