Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3b4a5339
Commit
3b4a5339
authored
Aug 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/misc: simplify header
parent
e0f1ce39
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
24 deletions
+12
-24
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+2
-2
modules/gui/macosx/misc.h
modules/gui/macosx/misc.h
+8
-20
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+2
-2
No files found.
modules/gui/macosx/MainWindow.m
View file @
3b4a5339
...
...
@@ -2121,7 +2121,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
CGDisplayFade
(
token
,
0
.
5
,
kCGDisplayBlendNormal
,
kCGDisplayBlendSolidColor
,
0
,
0
,
0
,
YES
);
}
if
([
screen
isM
ainScreen
])
if
([
screen
m
ainScreen
])
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
[[
o_video_view
superview
]
replaceSubview
:
o_video_view
with
:
o_temp_view
];
...
...
@@ -2176,7 +2176,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_fullscreen_anim2
release
];
}
if
([
screen
isM
ainScreen
])
if
([
screen
m
ainScreen
])
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
dict1
=
[[
NSMutableDictionary
alloc
]
initWithCapacity
:
2
];
...
...
modules/gui/macosx/misc.h
View file @
3b4a5339
...
...
@@ -46,8 +46,8 @@
*****************************************************************************/
@interface
NSAnimation
(
VLCAdditions
)
-
(
void
)
setUserInfo
:
(
void
*
)
userInfo
;
-
(
void
*
)
userInfo
;
@property
(
readwrite
)
void
*
userInfo
;
@end
/*****************************************************************************
...
...
@@ -58,8 +58,9 @@
@interface
NSScreen
(
VLCAdditions
)
@property
(
readonly
)
BOOL
mainScreen
;
+
(
NSScreen
*
)
screenWithDisplayID
:
(
CGDirectDisplayID
)
displayID
;
-
(
BOOL
)
isMainScreen
;
-
(
BOOL
)
isScreen
:
(
NSScreen
*
)
screen
;
-
(
CGDirectDisplayID
)
displayID
;
-
(
void
)
blackoutOtherScreens
;
...
...
@@ -80,10 +81,8 @@
BOOL
b_isset_canBecomeMainWindow
;
NSViewAnimation
*
animation
;
}
-
(
void
)
setCanBecomeKeyWindow
:
(
BOOL
)
canBecomeKey
;
-
(
void
)
setCanBecomeMainWindow
:
(
BOOL
)
canBecomeMain
;
@property
(
readwrite
)
BOOL
canBecomeKeyWindow
;
@property
(
readwrite
)
BOOL
canBecomeMainWindow
;
/* animate mode is only supported in >=10.4 */
-
(
void
)
orderFront
:
(
id
)
sender
animate
:
(
BOOL
)
animate
;
...
...
@@ -105,9 +104,6 @@
*****************************************************************************/
@interface
VLBrushedMetalImageView
:
NSImageView
{
}
@end
...
...
@@ -117,8 +113,6 @@
*****************************************************************************/
@interface
MPSlider
:
NSSlider
{
}
@end
...
...
@@ -132,7 +126,7 @@
NSRect
img_rect
;
BOOL
b_dark
;
}
-
(
CGFloat
)
knobPosition
;
@property
(
readonly
)
CGFloat
knobPosition
;
-
(
void
)
drawRect
:(
NSRect
)
rect
;
-
(
void
)
drawKnobInRect
:(
NSRect
)
knobRect
;
...
...
@@ -166,16 +160,13 @@
NSDictionary
*
o_string_attributes_dict
;
NSTextAlignment
textAlignment
;
}
-
(
BOOL
)
timeRemaining
;
@property
(
readonly
)
BOOL
timeRemaining
;
@end
/*****************************************************************************
* VLCMainWindowSplitView interface
*****************************************************************************/
@interface
VLCMainWindowSplitView
:
NSSplitView
{
}
@end
...
...
@@ -196,8 +187,5 @@
* VLCThreePartDropView interface
*****************************************************************************/
@interface
VLCThreePartDropView
:
VLCThreePartImageView
{
}
@end
modules/gui/macosx/misc.m
View file @
3b4a5339
...
...
@@ -184,7 +184,7 @@ static NSMutableArray *blackoutWindows = NULL;
return
nil
;
}
-
(
BOOL
)
isM
ainScreen
-
(
BOOL
)
m
ainScreen
{
return
([
self
displayID
]
==
[[[
NSScreen
screens
]
objectAtIndex
:
0
]
displayID
]);
}
...
...
@@ -233,7 +233,7 @@ static NSMutableArray *blackoutWindows = NULL;
[
blackoutWindows
addObject
:
blackoutWindow
];
[
blackoutWindow
release
];
if
(
[
screen
isM
ainScreen
]
)
if
(
[
screen
m
ainScreen
]
)
[
NSApp
setPresentationOptions
:(
NSApplicationPresentationAutoHideDock
|
NSApplicationPresentationAutoHideMenuBar
)];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment