summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/nativewindow_cocoa.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/nativewindow_cocoa.mm b/plugingui/nativewindow_cocoa.mm
index 79a2262..90b5c70 100644
--- a/plugingui/nativewindow_cocoa.mm
+++ b/plugingui/nativewindow_cocoa.mm
@@ -718,13 +718,13 @@ void NativeWindowCocoa::updateLayerOffset()
{
if(native_window)
{
- auto r1 = [priv->parent_view frame];
- //auto r2 = [priv->view frame];
+ //auto r1 = [priv->parent_view frame];
+ auto r2 = [priv->view frame];
CATransform3D t = [[priv->view layer] transform];
- if(t.m42 != -r1.origin.y)
+ if(t.m42 != -r2.origin.y)
{
- t.m42 = -r1.origin.y; // y
+ t.m42 = -r2.origin.y; // y
[[priv->view layer] setTransform:t];
}
}