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
4db4bfc6
Commit
4db4bfc6
authored
Apr 22, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/directx/*: only hide the mouse when in fullscreen.
parent
a5293e56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
modules/video_output/directx/directx.c
modules/video_output/directx/directx.c
+6
-4
modules/video_output/directx/events.c
modules/video_output/directx/events.c
+9
-0
modules/video_output/directx/vout.h
modules/video_output/directx/vout.h
+2
-2
No files found.
modules/video_output/directx/directx.c
View file @
4db4bfc6
...
...
@@ -462,7 +462,7 @@ static int Manage( vout_thread_t *p_vout )
p_vout
->
p_sys
->
rect_parent
=
rect_parent
;
/* This one is to force the update even if only
* the position has changed */
* the position has changed */
SetWindowPos
(
p_vout
->
p_sys
->
hwnd
,
0
,
1
,
1
,
rect_parent
.
right
-
rect_parent
.
left
,
rect_parent
.
bottom
-
rect_parent
.
top
,
0
);
...
...
@@ -539,6 +539,9 @@ static int Manage( vout_thread_t *p_vout )
/* Normal window */
window_placement
.
showCmd
=
SW_SHOWNORMAL
;
/* Make sure the mouse cursor is displayed */
PostMessage
(
p_vout
->
p_sys
->
hwnd
,
WM_VLC_SHOW_MOUSE
,
0
,
0
);
}
/* Change window style, borders and title bar */
...
...
@@ -556,8 +559,8 @@ static int Manage( vout_thread_t *p_vout )
/*
* Pointer change
*/
if
(
(
!
p_vout
->
p_sys
->
b_cursor_hidden
)
&&
(
(
mdate
()
-
p_vout
->
p_sys
->
i_lastmoved
)
>
5000000
)
)
if
(
p_vout
->
b_fullscreen
&&
!
p_vout
->
p_sys
->
b_cursor_hidden
&&
(
mdate
()
-
p_vout
->
p_sys
->
i_lastmoved
)
>
5000000
)
{
POINT
point
;
RECT
rect
;
...
...
@@ -570,7 +573,6 @@ static int Manage( vout_thread_t *p_vout )
GetCursorPos
(
&
point
);
if
(
PtInRect
(
&
rect
,
point
)
)
{
p_vout
->
p_sys
->
b_cursor_hidden
=
VLC_TRUE
;
PostMessage
(
p_vout
->
p_sys
->
hwnd
,
WM_VLC_HIDE_MOUSE
,
0
,
0
);
}
else
...
...
modules/video_output/directx/events.c
View file @
4db4bfc6
...
...
@@ -170,10 +170,19 @@ void DirectXEventThread( event_thread_t *p_event )
break
;
case
WM_VLC_HIDE_MOUSE
:
if
(
p_event
->
p_vout
->
p_sys
->
b_cursor_hidden
)
break
;
p_event
->
p_vout
->
p_sys
->
b_cursor_hidden
=
VLC_TRUE
;
GetCursorPos
(
&
old_mouse_pos
);
ShowCursor
(
FALSE
);
break
;
case
WM_VLC_SHOW_MOUSE
:
if
(
!
p_event
->
p_vout
->
p_sys
->
b_cursor_hidden
)
break
;
p_event
->
p_vout
->
p_sys
->
b_cursor_hidden
=
VLC_FALSE
;
GetCursorPos
(
&
old_mouse_pos
);
ShowCursor
(
TRUE
);
break
;
case
WM_LBUTTONDOWN
:
var_Get
(
p_event
->
p_vout
,
"mouse-button-down"
,
&
val
);
val
.
i_int
|=
1
;
...
...
modules/video_output/directx/vout.h
View file @
4db4bfc6
...
...
@@ -132,8 +132,8 @@ void DirectXUpdateRects ( vout_thread_t *p_vout, vlc_bool_t b_force );
* Constants
*****************************************************************************/
#define WM_VLC_HIDE_MOUSE WM_APP
#define WM_VLC_
CREATE_VIDEO_WIN
WM_APP + 1
#define WM_VLC_
DESTROY
_VIDEO_WIN WM_APP + 2
#define WM_VLC_
SHOW_MOUSE
WM_APP + 1
#define WM_VLC_
CREATE
_VIDEO_WIN WM_APP + 2
#define WM_VLC_CHANGE_TEXT WM_APP + 3
#define IDM_TOGGLE_ON_TOP WM_USER + 1
#define DX_POSITION_CHANGE 0x1000
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