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
8005efa8
Commit
8005efa8
authored
Jul 25, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Make sure we animate the embedded window in a non blocking way.
parent
25768ec5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+19
-1
No files found.
modules/gui/macosx/embeddedwindow.m
View file @
8005efa8
...
...
@@ -601,6 +601,24 @@
{
struct
args
{
NSRect
frame
;
BOOL
display
;
BOOL
animate
;
}
*
args
=
(
struct
args
*
)[
packedargs
bytes
];
[
super
setFrame
:
args
->
frame
display
:
args
->
display
animate
:
args
->
animate
];
if
(
args
->
animate
)
{
/* Make sure we don't block too long and set up a non blocking animation */
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
,
NSViewAnimationTargetKey
,
[
NSValue
valueWithRect
:[
self
frame
]],
NSViewAnimationStartFrameKey
,
[
NSValue
valueWithRect
:
args
->
frame
],
NSViewAnimationEndFrameKey
,
nil
];
NSViewAnimation
*
anim
=
[[
NSViewAnimation
alloc
]
initWithViewAnimations
:[
NSArray
arrayWithObjects
:
dict
,
nil
]];
[
anim
setAnimationBlockingMode
:
NSAnimationNonblocking
];
[
anim
setDuration
:
0
.
4
];
[
anim
setFrameRate
:
30
];
[
anim
startAnimation
];
}
else
{
[
super
setFrame
:
args
->
frame
display
:
args
->
display
animate
:
args
->
animate
];
}
}
@end
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