Skip to content

Commit

Permalink
fix issue with vertically mirrored UI with DP on macOS 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Dec 5, 2023
1 parent e7bdb10 commit d210d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vstgui/lib/platform/mac/cocoa/nsviewframe.mm
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ static void draggedImageEndedAtOperation (id self, SEL _cmd, NSImage* image, NSP
{
[nsView setWantsLayer:YES];
caLayer = [CALayer new];
caLayer.geometryFlipped = ![nsView.layer contentsAreFlipped];
caLayer.delegate = static_cast<id<CALayerDelegate>> (nsView);
caLayer.frame = nsView.layer.bounds;
[caLayer setContentsScale:nsView.layer.contentsScale];
Expand Down

0 comments on commit d210d67

Please sign in to comment.