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
c17c4753
Commit
c17c4753
authored
Dec 26, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* be more accurate when fading in and out (refs #913 and hopefully fixes it)
parent
adfd51f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+14
-3
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+2
-2
No files found.
modules/gui/macosx/fspanel.m
View file @
c17c4753
...
...
@@ -157,12 +157,21 @@
{
b_nonActive
=
YES
;
[
self
orderOut
:
self
];
/* here's fadeOut, just without visibly fading */
b_displayed
=
NO
;
[
self
setAlphaValue
:
0
.
0
];
[
self
setFadeTimer
:
nil
];
b_fadeQueued
=
NO
;
}
-
(
void
)
setActive
:(
id
)
noData
{
b_nonActive
=
NO
;
[
self
orderFront
:
self
];
if
(
[[[[
VLCMain
sharedInstance
]
getControls
]
getVoutView
]
isFullscreen
]
)
{
b_nonActive
=
NO
;
[
self
fadeIn
];
}
}
/* This routine is called repeatedly to fade in the window */
...
...
@@ -235,7 +244,9 @@
if
(
!
config_GetInt
(
VLCIntf
,
"macosx-fspanel"
)
||
b_nonActive
)
return
;
if
(
[
self
alphaValue
]
<
1
.
0
)
[
self
orderFront
:
nil
];
if
(
[
self
alphaValue
]
<
1
.
0
||
b_displayed
!=
YES
)
{
if
(
!
[
self
fadeTimer
])
[
self
setFadeTimer
:[
NSTimer
scheduledTimerWithTimeInterval
:
0
.
05
target
:
self
selector
:
@selector
(
focus
:
)
userInfo
:
[
NSNumber
numberWithShort
:
1
]
repeats
:
YES
]];
...
...
modules/gui/macosx/vout.m
View file @
c17c4753
...
...
@@ -385,9 +385,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_real_vout
,
"fullscreen"
,
val
);
if
(
[
self
isFullscreen
]
)
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
orderFront
:
self
];
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
setActive
:
nil
];
else
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
orderOut
:
self
];
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
setNonActive
:
nil
];
}
-
(
BOOL
)
isFullscreen
...
...
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