Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a272d13a
Commit
a272d13a
authored
Dec 12, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/vout*: fixed escape key not exiting fullscreen and video-on-top
not working in GL mode
parent
2feaca93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
modules/gui/macosx/vout.h
modules/gui/macosx/vout.h
+1
-0
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+16
-3
modules/gui/macosx/voutgl.m
modules/gui/macosx/voutgl.m
+2
-4
No files found.
modules/gui/macosx/vout.h
View file @
a272d13a
...
...
@@ -30,6 +30,7 @@
@interface
VLCWindow
:
NSWindow
{
vout_thread_t
*
p_vout
;
vout_thread_t
*
p_real_vout
;
Ptr
p_fullscreen_state
;
mtime_t
i_time_mouse_last_moved
;
...
...
modules/gui/macosx/vout.m
View file @
a272d13a
...
...
@@ -50,6 +50,19 @@
[
self
setReleasedWhenClosed
:
YES
];
p_vout
=
_p_vout
;
/* p_real_vout: the vout we have to use to check for video-on-top
and a few other things. If we are the QuickTime output, it's us.
It we are the OpenGL provider, it is our parent. */
if
(
p_vout
->
i_object_type
==
VLC_OBJECT_OPENGL
)
{
p_real_vout
=
(
vout_thread_t
*
)
p_vout
->
p_parent
;
}
else
{
p_real_vout
=
p_vout
;
}
p_fullscreen_state
=
NULL
;
i_time_mouse_last_moved
=
mdate
();
...
...
@@ -126,7 +139,7 @@
[
self
setAlphaValue
:
var_GetFloat
(
p_vout
,
"macosx-opaqueness"
)];
if
(
var_GetBool
(
p_vout
,
"video-on-top"
)
)
if
(
var_GetBool
(
p_
real_
vout
,
"video-on-top"
)
)
{
[
self
setLevel
:
NSStatusWindowLevel
];
}
...
...
@@ -261,8 +274,8 @@
-
(
void
)
toggleFullscreen
{
vlc_value_t
val
;
val
.
b_bool
=
!
p_vout
->
b_fullscreen
;
var_Set
(
p_vout
,
"fullscreen"
,
val
);
val
.
b_bool
=
!
p_
real_
vout
->
b_fullscreen
;
var_Set
(
p_
real_
vout
,
"fullscreen"
,
val
);
}
-
(
BOOL
)
isFullscreen
...
...
modules/gui/macosx/voutgl.m
View file @
a272d13a
...
...
@@ -78,14 +78,12 @@ int E_(OpenVideoGL) ( vlc_object_t * p_this )
int
i_timeout
;
vlc_value_t
val
;
/* OpenGL interface disabled until
* - the video on top var is properly working
* - the escape key is working in fullscreen
* - the green line is gone
* - other problems?????
*/
return
(
1
);
return
(
1
);
if
(
!
CGDisplayUsesOpenGLAcceleration
(
kCGDirectMainDisplay
)
)
{
msg_Warn
(
p_vout
,
"no hardware acceleration"
);
...
...
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