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
72974fc1
Commit
72974fc1
authored
Dec 26, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (msw).
parent
a00e80ab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+10
-9
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+5
-4
modules/video_output/msw/events.h
modules/video_output/msw/events.h
+1
-1
No files found.
modules/video_output/msw/common.c
View file @
72974fc1
...
...
@@ -252,6 +252,12 @@ void UpdateRects(vout_display_t *vd,
RECT
rect
;
POINT
point
;
/* */
if
(
!
cfg
)
cfg
=
vd
->
cfg
;
if
(
!
source
)
source
=
&
vd
->
source
;
/* Retrieve the window size */
GetClientRect
(
sys
->
hwnd
,
&
rect
);
...
...
@@ -260,19 +266,14 @@ void UpdateRects(vout_display_t *vd,
ClientToScreen
(
sys
->
hwnd
,
&
point
);
/* If nothing changed, we can return */
bool
has_changed
;
EventThreadUpdateWindowPosition
(
sys
->
event
,
&
has_changed
,
bool
has_moved
;
bool
is_resized
;
EventThreadUpdateWindowPosition
(
sys
->
event
,
&
has_moved
,
&
is_resized
,
point
.
x
,
point
.
y
,
rect
.
right
,
rect
.
bottom
);
if
(
!
is_forced
&&
!
has_
chang
ed
)
if
(
!
is_forced
&&
!
has_
moved
&&
!
is_resiz
ed
)
return
;
/* */
if
(
!
cfg
)
cfg
=
vd
->
cfg
;
if
(
!
source
)
source
=
&
vd
->
source
;
/* Update the window position and size */
vout_display_cfg_t
place_cfg
=
*
cfg
;
place_cfg
.
display
.
width
=
rect
.
right
;
...
...
modules/video_output/msw/events.c
View file @
72974fc1
...
...
@@ -927,13 +927,14 @@ int EventThreadGetWindowStyle( event_thread_t *p_event )
return
p_event
->
i_window_style
;
}
void
EventThreadUpdateWindowPosition
(
event_thread_t
*
p_event
,
bool
*
pb_changed
,
void
EventThreadUpdateWindowPosition
(
event_thread_t
*
p_event
,
bool
*
pb_moved
,
bool
*
pb_resized
,
int
x
,
int
y
,
int
w
,
int
h
)
{
vlc_mutex_lock
(
&
p_event
->
lock
);
*
pb_
changed
=
x
!=
p_event
->
wnd_cfg
.
x
||
y
!=
p_event
->
wnd_cfg
.
y
||
w
!=
p_event
->
wnd_cfg
.
width
||
*
pb_
moved
=
x
!=
p_event
->
wnd_cfg
.
x
||
y
!=
p_event
->
wnd_cfg
.
y
;
*
pb_resized
=
w
!=
p_event
->
wnd_cfg
.
width
||
h
!=
p_event
->
wnd_cfg
.
height
;
p_event
->
wnd_cfg
.
x
=
x
;
...
...
modules/video_output/msw/events.h
View file @
72974fc1
...
...
@@ -53,7 +53,7 @@ void EventThreadMouseAutoHide( event_thread_t * );
void
EventThreadMouseShow
(
event_thread_t
*
);
void
EventThreadUpdateTitle
(
event_thread_t
*
,
const
char
*
psz_fallback
);
int
EventThreadGetWindowStyle
(
event_thread_t
*
);
void
EventThreadUpdateWindowPosition
(
event_thread_t
*
,
bool
*
pb_
chang
ed
,
void
EventThreadUpdateWindowPosition
(
event_thread_t
*
,
bool
*
pb_
moved
,
bool
*
pb_resiz
ed
,
int
x
,
int
y
,
int
w
,
int
h
);
void
EventThreadUpdateSourceAndPlace
(
event_thread_t
*
p_event
,
const
video_format_t
*
p_source
,
...
...
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