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
15c25c42
Commit
15c25c42
authored
Dec 28, 2007
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Aspect Ratio and Crop support
parent
aa52ddea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
modules/video_output/sdl.c
modules/video_output/sdl.c
+22
-4
No files found.
modules/video_output/sdl.c
View file @
15c25c42
...
...
@@ -384,7 +384,7 @@ static int Manage( vout_thread_t *p_vout )
}
break
;
/* Mouse button
pres
sed */
/* Mouse button
relea
sed */
case
SDL_MOUSEBUTTONUP
:
switch
(
event
.
button
.
button
)
{
...
...
@@ -449,7 +449,7 @@ static int Manage( vout_thread_t *p_vout )
}
break
;
/* Mouse button
relea
sed */
/* Mouse button
pres
sed */
case
SDL_MOUSEBUTTONDOWN
:
switch
(
event
.
button
.
button
)
{
...
...
@@ -535,7 +535,7 @@ static int Manage( vout_thread_t *p_vout )
p_vout
->
b_fullscreen
=
!
p_vout
->
b_fullscreen
;
var_Set
(
p_vout
,
"fullscreen"
,
val_fs
);
/*TODO: add the
always on top cod
e !*/
/*TODO: add the
"always on top" code her
e !*/
p_vout
->
p_sys
->
b_cursor_autohidden
=
0
;
SDL_ShowCursor
(
p_vout
->
p_sys
->
b_cursor
&&
...
...
@@ -545,6 +545,25 @@ static int Manage( vout_thread_t *p_vout )
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
}
/* Crop or Aspect Ratio Changes */
if
(
p_vout
->
i_changes
&
VOUT_CROP_CHANGE
||
p_vout
->
i_changes
&
VOUT_ASPECT_CHANGE
)
{
p_vout
->
i_changes
&=
~
VOUT_CROP_CHANGE
;
p_vout
->
i_changes
&=
~
VOUT_ASPECT_CHANGE
;
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_aspect
=
p_vout
->
fmt_in
.
i_aspect
;
p_vout
->
fmt_out
.
i_sar_num
=
p_vout
->
fmt_in
.
i_sar_num
;
p_vout
->
fmt_out
.
i_sar_den
=
p_vout
->
fmt_in
.
i_sar_den
;
p_vout
->
output
.
i_aspect
=
p_vout
->
fmt_in
.
i_aspect
;
p_vout
->
i_changes
|=
VOUT_SIZE_CHANGE
;
}
/* Size change */
if
(
p_vout
->
i_changes
&
VOUT_SIZE_CHANGE
)
{
...
...
@@ -558,7 +577,6 @@ static int Manage( vout_thread_t *p_vout )
* we can handle rescaling ourselves */
if
(
p_vout
->
p_sys
->
p_overlay
!=
NULL
)
p_vout
->
i_changes
&=
~
VOUT_SIZE_CHANGE
;
}
/* Pointer change */
...
...
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