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
0ef251d9
Commit
0ef251d9
authored
Nov 26, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* usability fixes to the fspanel
parent
907f5891
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
modules/gui/macosx/fspanel.h
modules/gui/macosx/fspanel.h
+7
-2
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+19
-0
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+8
-1
No files found.
modules/gui/macosx/fspanel.h
View file @
0ef251d9
...
...
@@ -4,8 +4,8 @@
* Copyright (C) 2006 the VideoLAN team
* $Id: fspanel.h 16935 2006-10-04 08:19:38Z fkuehne $
*
* Authors: J
r
me Decoodt <djc at videolan dot org>
* Felix Khne <fkuehne at videolan dot org>
* Authors: J
érô
me Decoodt <djc at videolan dot org>
* Felix K
ü
hne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -30,6 +30,9 @@
BOOL
b_keptVisible
;
BOOL
b_alreadyCounting
;
int
i_timeToKeepVisibleInSec
;
BOOL
b_displayed
;
BOOL
b_voutWasUpdated
;
}
-
(
id
)
initWithContentRect
:
(
NSRect
)
contentRect
styleMask
:
(
unsigned
int
)
aStyle
...
...
@@ -61,6 +64,8 @@
-
(
void
)
mouseDown
:(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseDragged
:(
NSEvent
*
)
theEvent
;
-
(
BOOL
)
isDisplayed
;
-
(
void
)
setVoutWasUpdated
;
@end
@interface
VLCFSPanelView
:
NSView
...
...
modules/gui/macosx/fspanel.m
View file @
0ef251d9
...
...
@@ -115,10 +115,18 @@
/* This routine is called repeatedly to fade in the window */
-
(
void
)
focus
:(
NSTimer
*
)
timer
{
/* we need to push ourselves to front if the vout window was closed since our last display */
if
(
b_voutWasUpdated
)
{
[
self
orderFront
:
self
];
b_voutWasUpdated
=
NO
;
}
if
(
[
self
alphaValue
]
<
1
.
0
)
[
self
setAlphaValue
:[
self
alphaValue
]
+
0
.
1
];
if
(
[
self
alphaValue
]
>=
1
.
0
)
{
b_displayed
=
YES
;
[
self
setAlphaValue
:
1
.
0
];
[
self
setFadeTimer
:
nil
];
if
(
b_fadeQueued
)
...
...
@@ -145,6 +153,7 @@
[
self
setAlphaValue
:[
self
alphaValue
]
-
0
.
1
];
if
(
[
self
alphaValue
]
<=
0
.
1
)
{
b_displayed
=
NO
;
[
self
setAlphaValue
:
0
.
0
];
[
self
setFadeTimer
:
nil
];
if
(
b_fadeQueued
)
...
...
@@ -257,6 +266,16 @@
point
.
y
-=
mouseClic
.
y
;
[
self
setFrameOrigin
:
point
];
}
-
(
BOOL
)
isDisplayed
{
return
b_displayed
;
}
-
(
void
)
setVoutWasUpdated
{
b_voutWasUpdated
=
YES
;
}
@end
/*****************************************************************************
...
...
modules/gui/macosx/vout.m
View file @
0ef251d9
...
...
@@ -654,7 +654,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t
value_drawable
;
int
i_timeout
;
id
o_return
=
nil
;
vout_thread_t
*
p_real_vout
=
[
VLCVoutView
getRealVout
:
p_vout
];
var_Get
(
p_vout
->
p_vlc
,
"drawable"
,
&
value_drawable
);
...
...
@@ -934,6 +933,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
p_vout
->
b_fullscreen
)
{
/* move the FSPanel to front in case that it is currently shown
* this won't and is not supposed to work when it's fading right now */
if
(
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
isDisplayed
]
)
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
orderFront
:
self
];
/* tell the fspanel to move itself to front next time it's triggered */
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
setVoutWasUpdated
];
CGDisplayFadeReservationToken
token
;
NSRect
screen_rect
=
[
o_screen
frame
];
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
;
...
...
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