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
e07983a6
Commit
e07983a6
authored
Feb 08, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed no autoscale video mode (close #3246).
parent
97cbb479
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/video_output/display.c
src/video_output/display.c
+3
-7
No files found.
src/video_output/display.c
View file @
e07983a6
...
...
@@ -208,14 +208,10 @@ void vout_display_PlacePicture(vout_display_place_t *place,
return
;
/* */
unsigned
width
;
unsigned
height
;
unsigned
display_width
;
unsigned
display_height
;
if
(
cfg
->
is_display_filled
)
{
width
=
source
->
i_visible_width
;
height
=
source
->
i_visible_height
;
display_width
=
cfg
->
display
.
width
;
display_height
=
cfg
->
display
.
height
;
}
else
{
...
...
@@ -223,17 +219,17 @@ void vout_display_PlacePicture(vout_display_place_t *place,
cfg_tmp
.
display
.
width
=
0
;
cfg_tmp
.
display
.
height
=
0
;
vout_display_GetDefaultDisplaySize
(
&
width
,
&
height
,
vout_display_GetDefaultDisplaySize
(
&
display_width
,
&
display_
height
,
source
,
&
cfg_tmp
);
display_width
=
width
;
display_height
=
height
;
if
(
do_clipping
)
{
display_width
=
__MIN
(
display_width
,
cfg
->
display
.
width
);
display_height
=
__MIN
(
display_height
,
cfg
->
display
.
height
);
}
}
const
unsigned
width
=
source
->
i_visible_width
;
const
unsigned
height
=
source
->
i_visible_height
;
/* Compute the height if we use the width to fill up display_width */
const
int64_t
scaled_height
=
(
int64_t
)
height
*
display_width
*
cfg
->
display
.
sar
.
num
*
source
->
i_sar_den
/
width
/
source
->
i_sar_num
/
cfg
->
display
.
sar
.
den
;
/* And the same but switching width/height */
...
...
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