Skip to content

Commit

Permalink
Update aolayer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoru-1816 authored Jan 14, 2025
1 parent bdd597d commit 602d957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aolayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ void AOLayer::center_pixmap(QPixmap f_pixmap) {
x + (f_w - f_pixmap.width()) / 2,
y + (f_h - f_pixmap.height())); // Always center horizontally, always put
// at the bottom vertically
centeredX = x + (f_w - f_pixmap.width()) / 2;
centeredY = y + (f_h - f_pixmap.height()));
if (masked)
this->setMask(
QRegion((f_pixmap.width() - f_w) / 2, (f_pixmap.height() - f_h) / 2, f_w,
Expand Down

0 comments on commit 602d957

Please sign in to comment.