Skip to content

Commit

Permalink
[osx] - get rid of carbon dependency in winsystemosx
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed May 12, 2012
1 parent 3dbd083 commit 637d3ea
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions xbmc/windowing/osx/WinSystemOSX.mm
Expand Up @@ -47,8 +47,6 @@
#import <IOKit/pwr_mgt/IOPMLib.h>
#import <IOKit/graphics/IOGraphicsLib.h>

#import <Carbon/Carbon.h> // ShowMenuBar, HideMenuBar

// turn off deprecated warning spew.
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

Expand Down Expand Up @@ -212,6 +210,19 @@ float GetDictionaryFloat(CFDictionaryRef theDict, const void* key)
}

//---------------------------------------------------------------------------------
void HideMenuBar()
{
[[NSApplication sharedApplication]
setPresentationOptions: NSApplicationPresentationHideMenuBar |
NSApplicationPresentationHideDock];
}
//---------------------------------------------------------------------------------
void ShowMenuBar()
{
[[NSApplication sharedApplication]
setPresentationOptions: NSApplicationPresentationDefault];
}
//---------------------------------------------------------------------------------
CGDirectDisplayID GetDisplayID(int screen_index)
{
CGDirectDisplayID displayArray[MAX_DISPLAYS];
Expand Down

0 comments on commit 637d3ea

Please sign in to comment.