Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
0337533b
Commit
0337533b
authored
Oct 27, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/directx/glwin32.c: support on-the-fly crop changes.
parent
6139440a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/video_output/directx/glwin32.c
modules/video_output/directx/glwin32.c
+13
-0
No files found.
modules/video_output/directx/glwin32.c
View file @
0337533b
...
...
@@ -302,6 +302,19 @@ static int Manage( vout_thread_t *p_vout )
vlc_mutex_unlock
(
&
p_vout
->
p_sys
->
lock
);
}
/* Check for cropping changes */
if
(
p_vout
->
fmt_out
.
i_x_offset
!=
p_vout
->
fmt_in
.
i_x_offset
||
p_vout
->
fmt_out
.
i_y_offset
!=
p_vout
->
fmt_in
.
i_y_offset
||
p_vout
->
fmt_out
.
i_visible_width
!=
p_vout
->
fmt_in
.
i_visible_width
||
p_vout
->
fmt_out
.
i_visible_height
!=
p_vout
->
fmt_in
.
i_visible_height
)
{
p_vout
->
fmt_out
.
i_x_offset
=
p_vout
->
fmt_in
.
i_x_offset
;
p_vout
->
fmt_out
.
i_y_offset
=
p_vout
->
fmt_in
.
i_y_offset
;
p_vout
->
fmt_out
.
i_visible_width
=
p_vout
->
fmt_in
.
i_visible_width
;
p_vout
->
fmt_out
.
i_visible_height
=
p_vout
->
fmt_in
.
i_visible_height
;
E_
(
DirectXUpdateRects
)(
p_vout
,
VLC_TRUE
);
}
/* We used to call the Win32 PeekMessage function here to read the window
* messages. But since window can stay blocked into this function for a
* long time (for example when you move your window on the screen), I
...
...
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