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
f1ff3934
Commit
f1ff3934
authored
Mar 07, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix the issue where sometimes the Menubar wouldn't reappear after exiting fullscreen.
parent
6b99a438
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
modules/gui/macosx/vout.h
modules/gui/macosx/vout.h
+0
-1
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+9
-14
No files found.
modules/gui/macosx/vout.h
View file @
f1ff3934
...
@@ -120,7 +120,6 @@
...
@@ -120,7 +120,6 @@
vout_thread_t
*
p_real_vout
;
vout_thread_t
*
p_real_vout
;
Ptr
p_fullscreen_state
;
Ptr
p_fullscreen_state
;
vlc_bool_t
b_fullscreen
;
vlc_bool_t
b_init_ok
;
vlc_bool_t
b_init_ok
;
}
}
...
...
modules/gui/macosx/vout.m
View file @
f1ff3934
...
@@ -935,7 +935,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -935,7 +935,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
b_init_ok
=
VLC_FALSE
;
b_init_ok
=
VLC_FALSE
;
p_fullscreen_state
=
NULL
;
p_fullscreen_state
=
NULL
;
b_fullscreen
=
VLC_FALSE
;
p_real_vout
=
[
VLCVoutView
getRealVout
:
p_vout
];
p_real_vout
=
[
VLCVoutView
getRealVout
:
p_vout
];
i_device
=
var_GetInteger
(
p_real_vout
->
p_vlc
,
"video-device"
);
i_device
=
var_GetInteger
(
p_real_vout
->
p_vlc
,
"video-device"
);
...
@@ -958,7 +957,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -958,7 +957,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
p_vout
->
b_fullscreen
)
if
(
p_vout
->
b_fullscreen
)
{
{
CGDisplayFadeReservationToken
token
;
CGDisplayFadeReservationToken
token
;
b_fullscreen
=
VLC_TRUE
;
NSRect
screen_rect
=
[
o_screen
frame
];
NSRect
screen_rect
=
[
o_screen
frame
];
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
;
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
;
...
@@ -1013,7 +1011,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -1013,7 +1011,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
var_GetBool
(
p_vout
,
"macosx-black"
)
)
if
(
var_GetBool
(
p_vout
,
"macosx-black"
)
)
{
{
CGAcquireDisplayFadeReservation
(
kCGMaxDisplayReservationInterval
,
&
token
);
CGAcquireDisplayFadeReservation
(
kCGMaxDisplayReservationInterval
,
&
token
);
CGDisplayFade
(
token
,
2
,
kCGDisplayBlendSolidColor
,
kCGDisplayBlendNormal
,
0
,
0
,
0
,
false
);
CGDisplayFade
(
token
,
2
,
kCGDisplayBlendSolidColor
,
kCGDisplayBlendNormal
,
0
,
0
,
0
,
false
);
CGReleaseDisplayFadeReservation
(
token
);
CGReleaseDisplayFadeReservation
(
token
);
}
}
}
}
...
@@ -1097,18 +1095,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -1097,18 +1095,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
-
(
id
)
closeReal
:
(
id
)
sender
-
(
id
)
closeReal
:
(
id
)
sender
{
{
if
(
b_fullscreen
==
VLC_TRUE
)
if
(
p_fullscreen_state
)
EndFullScreen
(
p_fullscreen_state
,
0
);
if
(
var_GetBool
(
p_vout
,
"macosx-black"
)
)
{
{
if
(
p_vout
->
b_fullscreen
)
CGDisplayFadeReservationToken
token
;
EndFullScreen
(
p_fullscreen_state
,
0
);
CGAcquireDisplayFadeReservation
(
kCGMaxDisplayReservationInterval
,
&
token
);
if
(
var_GetBool
(
p_vout
,
"macosx-black"
)
)
CGDisplayFade
(
token
,
2
,
kCGDisplayBlendSolidColor
,
kCGDisplayBlendNormal
,
0
,
0
,
0
,
false
);
{
CGReleaseDisplayFadeReservation
(
token
);
CGDisplayFadeReservationToken
token
;
CGDisplayRestoreColorSyncSettings
();
CGAcquireDisplayFadeReservation
(
kCGMaxDisplayReservationInterval
,
&
token
);
CGDisplayFade
(
token
,
2
,
kCGDisplayBlendSolidColor
,
kCGDisplayBlendNormal
,
0
,
0
,
0
,
false
);
CGReleaseDisplayFadeReservation
(
token
);
CGDisplayRestoreColorSyncSettings
();
}
}
}
[
super
close
];
[
super
close
];
return
NULL
;
return
NULL
;
...
...
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