summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-11-15 19:12:48 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-11-15 19:12:48 +0100
commit8cf280dbde02836f9cf44e10484c850f0c159cdb (patch)
tree0517ccf9c0cf09ae265897e0d9f1ec95d71c6644 /plugingui
parent7d14ca9cc2449448ab19d8f0daf8c8a66e4cefa7 (diff)
Fix wierd misplacement problem on OSX UI.
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];
}
}