Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 64d0f68

Browse files
committed
[[ Bug 23104 ]] Fix calculation of player's native layer rect when stack is resized
This patch ensures the player's native layer rect is calculated correctly when the stack is resized.
1 parent a3d49a3 commit 64d0f68

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-23104.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure player's native layer rectangle does not change when stack is resized

engine/src/native-layer-mac.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157

158158
void MCNativeLayerMac::doSetViewportGeometry(const MCRectangle &p_rect)
159159
{
160-
doSetGeometry(m_object->getrect());
160+
doSetGeometry(m_rect);
161161
}
162162

163163
void MCNativeLayerMac::doSetGeometry(const MCRectangle &p_rect)

0 commit comments

Comments
 (0)