Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
8b356767
Commit
8b356767
authored
Jun 23, 2007
by
Pierre d'Herbemont
Browse files
Mac OS X gui: Fade out in a smoother way.
parent
4f6f54d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/macosx/fspanel.m
View file @
8b356767
...
...
@@ -228,8 +228,8 @@
return
;
}
if
(
[
self
alphaValue
]
>
0
.
0
)
[
self
setAlphaValue
:[
self
alphaValue
]
-
0
.
1
];
if
(
[
self
alphaValue
]
<=
0
.
1
)
[
self
setAlphaValue
:[
self
alphaValue
]
-
0
.
05
];
if
(
[
self
alphaValue
]
<=
0
.
05
)
{
b_displayed
=
NO
;
[
self
setAlphaValue
:
0
.
0
];
...
...
@@ -280,7 +280,7 @@
if
(
(
[
self
alphaValue
]
>
0
.
0
)
)
{
if
(
!
[
self
fadeTimer
])
[
self
setFadeTimer
:[
NSTimer
scheduledTimerWithTimeInterval
:
0
.
1
target
:
self
selector
:
@selector
(
unfocus
:
)
userInfo
:
[
NSNumber
numberWithShort
:
0
]
repeats
:
YES
]];
[
self
setFadeTimer
:[
NSTimer
scheduledTimerWithTimeInterval
:
0
.
05
target
:
self
selector
:
@selector
(
unfocus
:
)
userInfo
:
[
NSNumber
numberWithShort
:
0
]
repeats
:
YES
]];
else
if
([[[
self
fadeTimer
]
userInfo
]
shortValue
]
==
1
)
b_fadeQueued
=
YES
;
}
...
...
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