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
8984dcc1
Commit
8984dcc1
authored
Apr 19, 2006
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backports of 15287 and 15222
parent
c27be2b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+16
-6
No files found.
modules/gui/macosx/vout.m
View file @
8984dcc1
...
@@ -358,6 +358,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -358,6 +358,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
{
{
vlc_value_t
val
;
vlc_value_t
val
;
if
(
!
p_real_vout
)
return
;
if
(
var_Get
(
p_real_vout
,
"video-on-top"
,
&
val
)
>=
0
&&
val
.
b_bool
)
if
(
var_Get
(
p_real_vout
,
"video-on-top"
,
&
val
)
>=
0
&&
val
.
b_bool
)
{
{
val
.
b_bool
=
VLC_FALSE
;
val
.
b_bool
=
VLC_FALSE
;
...
@@ -372,6 +373,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -372,6 +373,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
-
(
void
)
toggleFullscreen
-
(
void
)
toggleFullscreen
{
{
vlc_value_t
val
;
vlc_value_t
val
;
if
(
!
p_real_vout
)
return
;
var_Get
(
p_real_vout
,
"fullscreen"
,
&
val
);
var_Get
(
p_real_vout
,
"fullscreen"
,
&
val
);
val
.
b_bool
=
!
val
.
b_bool
;
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_real_vout
,
"fullscreen"
,
val
);
var_Set
(
p_real_vout
,
"fullscreen"
,
val
);
...
@@ -425,7 +427,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -425,7 +427,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
/* Escape should always get you out of fullscreen */
/* Escape should always get you out of fullscreen */
if
(
key
==
(
unichar
)
0x1b
)
if
(
key
==
(
unichar
)
0x1b
)
{
{
if
(
[
self
isFullscreen
]
)
if
(
p_real_vout
&&
[
self
isFullscreen
]
)
{
{
[
self
toggleFullscreen
];
[
self
toggleFullscreen
];
}
}
...
@@ -770,6 +772,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -770,6 +772,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
frame:
s_arg_frame
];
frame:
s_arg_frame
];
[
self
updateTitle
];
[
self
updateTitle
];
[
view
setFrame
:
[
self
frame
]];
[
view
setFrame
:
[
self
frame
]];
if
(
var_GetBool
(
p_real_vout
,
"video-on-top"
)
)
{
[
o_window
setLevel
:
NSStatusWindowLevel
];
}
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
return
b_return
;
return
b_return
;
}
}
...
@@ -851,6 +860,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -851,6 +860,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
o_window
=
[
self
window
];
o_window
=
[
self
window
];
[
o_window
makeKeyAndOrderFront
:
self
];
[
o_window
makeKeyAndOrderFront
:
self
];
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
[
o_window
setAcceptsMouseMovedEvents
:
TRUE
];
if
(
var_GetBool
(
p_real_vout
,
"video-on-top"
)
)
{
[
o_window
setLevel
:
NSStatusWindowLevel
];
}
[
view
setFrameSize
:
[
self
frame
].
size
];
[
view
setFrameSize
:
[
self
frame
].
size
];
}
}
return
b_return
;
return
b_return
;
...
@@ -1055,11 +1070,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -1055,11 +1070,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[
self
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
[
self
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
if
(
var_GetBool
(
p_real_vout
,
"video-on-top"
)
)
{
[
self
setLevel
:
NSStatusWindowLevel
];
}
if
(
!
s_frame
)
if
(
!
s_frame
)
{
{
[
self
center
];
[
self
center
];
...
...
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