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
d77c16d3
Commit
d77c16d3
authored
Dec 07, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Better center for the fspanel.
* Don't hide if the mousepointer is over the fspanel
parent
aefb8674
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
modules/gui/macosx/fspanel.h
modules/gui/macosx/fspanel.h
+2
-2
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+12
-8
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+5
-5
No files found.
modules/gui/macosx/fspanel.h
View file @
d77c16d3
...
...
@@ -30,10 +30,10 @@
BOOL
b_keptVisible
;
BOOL
b_alreadyCounting
;
int
i_timeToKeepVisibleInSec
;
int
i_outputScreen
;
BOOL
b_displayed
;
BOOL
b_voutWasUpdated
;
int
i_device
;
}
-
(
id
)
initWithContentRect
:
(
NSRect
)
contentRect
styleMask
:
(
unsigned
int
)
aStyle
...
...
@@ -66,7 +66,7 @@
-
(
void
)
mouseDragged
:(
NSEvent
*
)
theEvent
;
-
(
BOOL
)
isDisplayed
;
-
(
void
)
setVoutWasUpdated
;
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_screen
;
@end
@interface
VLCFSPanelView
:
NSView
...
...
modules/gui/macosx/fspanel.m
View file @
d77c16d3
...
...
@@ -50,6 +50,7 @@
/* let the window sit on top of everything else and start out completely transparent */
[
win
setLevel
:
NSFloatingWindowLevel
];
[
win
setAlphaValue
:
0
.
0
];
i_device
=
0
;
[
win
center
];
return
win
;
...
...
@@ -91,15 +92,13 @@
NSPoint
theCoordinate
;
NSRect
theScreensFrame
;
NSRect
theWindowsFrame
;
i_outputScreen
=
var_GetInteger
(
VLCIntf
->
p_vlc
,
"video-device"
);
if
(
i_
outputScreen
<=
0
||
i_outputScreen
>
(
signed
int
)[[
NSScreen
screens
]
count
]
)
if
(
i_
device
<
0
||
i_device
>=
(
signed
int
)[[
NSScreen
screens
]
count
]
)
/* invalid preferences or none specified, using main screen */
theScreensFrame
=
[[
NSScreen
mainScreen
]
frame
];
else
/* user-defined screen */
theScreensFrame
=
[[[
NSScreen
screens
]
objectAtIndex
:
i_
outputScreen
-
1
]
frame
];
theScreensFrame
=
[[[
NSScreen
screens
]
objectAtIndex
:
i_
device
]
frame
];
theWindowsFrame
=
[
self
frame
];
...
...
@@ -204,9 +203,6 @@
-
(
void
)
fadeIn
{
if
(
i_outputScreen
!=
var_GetInteger
(
VLCIntf
->
p_vlc
,
"video-device"
)
)
[
self
center
];
if
(
[
self
alphaValue
]
<
1
.
0
)
{
if
(
!
[
self
fadeTimer
])
...
...
@@ -219,6 +215,9 @@
-
(
void
)
fadeOut
{
if
(
NSPointInRect
([
NSEvent
mouseLocation
],[
self
frame
]))
return
;
if
(
(
[
self
alphaValue
]
>
0
.
0
)
)
{
if
(
!
[
self
fadeTimer
])
...
...
@@ -301,9 +300,14 @@
return
b_displayed
;
}
-
(
void
)
setVoutWasUpdated
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_newdevice
;
{
b_voutWasUpdated
=
YES
;
if
(
i_newdevice
!=
i_device
)
{
i_device
=
i_newdevice
;
[
self
center
];
}
}
@end
...
...
modules/gui/macosx/vout.m
View file @
d77c16d3
...
...
@@ -933,17 +933,17 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
p_vout
->
b_fullscreen
)
{
CGDisplayFadeReservationToken
token
;
NSRect
screen_rect
=
[
o_screen
frame
];
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
;
/* 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
;
[[[[
VLCMain
sharedInstance
]
getControls
]
getFSPanel
]
setVoutWasUpdated
:
i_device
];
/* Creates a window with size: screen_rect on o_screen */
[
self
initWithContentRect
:
screen_rect
...
...
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