Kaydet (Commit) 2116b92f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: 'convertBaseToScreen:' is deprecated: first deprecated in OS X 10.7

Change-Id: I04cc155e69d25021d294bccc588450b1f20e1fde
üst 74ae541c
...@@ -880,8 +880,12 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( sal_uInt16 i_nItemId, SalFrame ...@@ -880,8 +880,12 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( sal_uInt16 i_nItemId, SalFrame
if( ! pNSWin ) if( ! pNSWin )
return Rectangle(); return Rectangle();
#if MACOSX_SDK_VERSION >= 1070
NSRect aRect = [pNSWin convertRectToScreen:[pNSWin frame]];
#else
NSRect aRect = [pNSWin frame]; NSRect aRect = [pNSWin frame];
aRect.origin = [pNSWin convertBaseToScreen: NSMakePoint( 0, 0 )]; aRect.origin = [pNSWin convertBaseToScreen: NSMakePoint( 0, 0 )];
#endif
// make coordinates relative to reference frame // make coordinates relative to reference frame
static_cast<AquaSalFrame*>(i_pReferenceFrame)->CocoaToVCL( aRect.origin ); static_cast<AquaSalFrame*>(i_pReferenceFrame)->CocoaToVCL( aRect.origin );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment