Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b3b1dd
commit dc5c674
Showing
8 changed files
with
47 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 9 additions & 4 deletions
13
mythtv/libs/libmythui/util-osx.h → ...v/libs/libmythui/platforms/mythosxutils.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef MYTHUTILSCOCOA_H_ | ||
#define MYTHUTILSCOCOA_H_ | ||
|
||
// MythTV | ||
#include "mythuiexp.h" | ||
|
||
// OSX | ||
#import "ApplicationServices/ApplicationServices.h" | ||
|
||
CGDirectDisplayID GetOSXCocoaDisplay(void* view); | ||
|
||
#endif // MYTHUTILSCOCOA_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// MythTV | ||
#include "mythutilscocoa.h" | ||
|
||
CGDirectDisplayID GetOSXCocoaDisplay(void* view) | ||
{ | ||
NSView *thisview = static_cast<NSView *>(view); | ||
if (!thisview) | ||
return 0; | ||
NSScreen *screen = [[thisview window] screen]; | ||
if (!screen) | ||
return 0; | ||
NSDictionary* desc = [screen deviceDescription]; | ||
return (CGDirectDisplayID)[[desc objectForKey:@"NSScreenNumber"] intValue]; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.