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
a49a93fe
Commit
a49a93fe
authored
Mar 06, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed an issue with blackbars at certain aspect ratios when you resize
the video window. (half, double)
parent
9940fc7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+17
-5
No files found.
modules/gui/macosx/vout.m
View file @
a49a93fe
...
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.3
7 2003/03/06 11:43:07
hartman Exp $
* $Id: vout.m,v 1.3
8 2003/03/06 12:52:32
hartman Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -745,7 +745,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
-
(
void
)
scaleWindowWithFactor
:
(
float
)
factor
{
NSSize
newsize
;
int
i_corrected_height
;
int
i_corrected_height
,
i_corrected_width
;
NSPoint
topleftbase
;
NSPoint
topleftscreen
;
...
...
@@ -755,10 +755,22 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
topleftbase
.
y
=
[
self
frame
].
size
.
height
;
topleftscreen
=
[
self
convertBaseToScreen
:
topleftbase
];
if
(
p_vout
->
output
.
i_height
*
p_vout
->
output
.
i_aspect
<
p_vout
->
output
.
i_width
*
VOUT_ASPECT_FACTOR
)
{
i_corrected_width
=
p_vout
->
output
.
i_height
*
p_vout
->
output
.
i_aspect
/
VOUT_ASPECT_FACTOR
;
newsize
.
width
=
(
int
)
(
i_corrected_width
*
factor
);
newsize
.
height
=
(
int
)
(
p_vout
->
render
.
i_height
*
factor
);
}
else
{
i_corrected_height
=
p_vout
->
output
.
i_width
*
VOUT_ASPECT_FACTOR
/
p_vout
->
output
.
i_aspect
;
newsize
.
width
=
(
int
)
(
p_vout
->
render
.
i_width
*
factor
);
newsize
.
height
=
(
int
)
(
i_corrected_height
*
factor
);
}
[
self
setContentSize
:
newsize
];
[
self
setFrameTopLeftPoint
:
topleftscreen
];
...
...
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