diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-06-03 10:26:34 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-06-11 10:02:36 +0300 |
commit | 9476323771836985c5f8980bf888c0c45e51df2c (patch) | |
tree | 106f6937612519169dca15a2282d31cb6cceea58 /vcl | |
parent | 7b39a65227bc4226bf9eff262584c5f2a29a93cf (diff) |
WaE: 'convertBaseToScreen:' is deprecated: first deprecated in OS X 10.7
Change-Id: I04cc155e69d25021d294bccc588450b1f20e1fde
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/aqua/source/window/salmenu.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/aqua/source/window/salmenu.cxx b/vcl/aqua/source/window/salmenu.cxx index 6ec003c2afa2..b2e2216ccad6 100644 --- a/vcl/aqua/source/window/salmenu.cxx +++ b/vcl/aqua/source/window/salmenu.cxx @@ -891,8 +891,12 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( sal_uInt16 i_nItemId, SalFrame if( ! pWin ) return Rectangle(); +#if MACOSX_SDK_VERSION >= 1070 + NSRect aRect = [pWin convertRectToScreen:[pWin frame]]; +#else NSRect aRect = [pWin frame]; aRect.origin = [pWin convertBaseToScreen: NSMakePoint( 0, 0 )]; +#endif // make coordinates relative to reference frame static_cast<AquaSalFrame*>(i_pReferenceFrame)->CocoaToVCL( aRect.origin ); |