Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
81c0dfc8
Commit
81c0dfc8
authored
Jul 29, 2011
by
Sergey Radionov
Committed by
Rémi Denis-Courmont
Jul 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NPAPI: Win32, Fullscreen window now created only when needed.
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
c456a749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
projects/mozilla/vlc_win32_fullscreen.cpp
projects/mozilla/vlc_win32_fullscreen.cpp
+16
-3
No files found.
projects/mozilla/vlc_win32_fullscreen.cpp
View file @
81c0dfc8
...
...
@@ -832,10 +832,14 @@ void VLCWindowsManager::CreateWindows(HWND hWindowedParentWnd)
void
VLCWindowsManager
::
DestroyWindows
()
{
_FSWnd
->
DestroyWindow
();
if
(
_FSWnd
){
_FSWnd
->
DestroyWindow
();
}
_FSWnd
=
0
;
_HolderWnd
->
DestroyWindow
();
if
(
_HolderWnd
){
_HolderWnd
->
DestroyWindow
();
}
_HolderWnd
=
0
;
}
...
...
@@ -853,6 +857,10 @@ void VLCWindowsManager::LibVlcDetach()
void
VLCWindowsManager
::
StartFullScreen
()
{
if
(
getMD
()
&&!
IsFullScreen
()){
if
(
!
_FSWnd
){
_FSWnd
=
VLCFullScreenWnd
::
CreateFSWindow
(
this
);
}
SetParent
(
_HolderWnd
->
getHWND
(),
_FSWnd
->
getHWND
());
SetWindowPos
(
_FSWnd
->
getHWND
(),
HWND_TOPMOST
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
),
0
/** /SWP_NOZORDER/**/
);
...
...
@@ -873,7 +881,12 @@ void VLCWindowsManager::EndFullScreen()
ShowWindow
(
_hWindowedParentWnd
,
SW_SHOW
);
ShowWindow
(
_FSWnd
->
getHWND
(),
SW_HIDE
);
}
if
(
_FSWnd
){
_FSWnd
->
DestroyWindow
();
}
_FSWnd
=
0
;
}
}
void
VLCWindowsManager
::
ToggleFullScreen
()
...
...
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