From 907c5d97a5b33e1a23618e271a4f9b8fedb6661c Mon Sep 17 00:00:00 2001 From: Josh Petrie Date: Sat, 10 Oct 2015 16:39:05 -0700 Subject: [PATCH] Fix warning concerning convertBaseToScreen. --- src/MacVim/MMTextViewHelper.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MacVim/MMTextViewHelper.m b/src/MacVim/MMTextViewHelper.m index 0db953aee7..01375b4386 100644 --- a/src/MacVim/MMTextViewHelper.m +++ b/src/MacVim/MMTextViewHelper.m @@ -777,7 +777,11 @@ KeyboardInputSourcesEqual(TISInputSourceRef a, TISInputSourceRef b) rect.origin.y += rect.size.height; rect.origin = [textView convertPoint:rect.origin toView:nil]; +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 + rect = [[textView window] convertRectToScreen:rect]; +#else rect.origin = [[textView window] convertBaseToScreen:rect.origin]; +#endif return rect; }