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
adc787f4
Commit
adc787f4
authored
Feb 10, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed the black bar issue with window half/normal/double window sizes in
OSX. i had forgotten the aspectratio.
parent
63464c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+5
-2
No files found.
modules/gui/macosx/vout.m
View file @
adc787f4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin
* vout.m: MacOS X video output plugin
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.2
7 2003/02/08 21:43:2
6 hartman Exp $
* $Id: vout.m,v 1.2
8 2003/02/10 21:28:1
6 hartman Exp $
*
*
* Authors: Colin Delacroix <colin@zoy.org>
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
* Florian G. Pflug <fgp@phlo.org>
...
@@ -728,6 +728,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -728,6 +728,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
-
(
void
)
scaleWindowWithFactor
:
(
float
)
factor
-
(
void
)
scaleWindowWithFactor
:
(
float
)
factor
{
{
NSSize
newsize
;
NSSize
newsize
;
int
i_corrected_height
;
NSPoint
topleftbase
;
NSPoint
topleftbase
;
NSPoint
topleftscreen
;
NSPoint
topleftscreen
;
...
@@ -737,8 +738,10 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -737,8 +738,10 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
topleftbase
.
y
=
[
self
frame
].
size
.
height
;
topleftbase
.
y
=
[
self
frame
].
size
.
height
;
topleftscreen
=
[
self
convertBaseToScreen
:
topleftbase
];
topleftscreen
=
[
self
convertBaseToScreen
:
topleftbase
];
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
.
width
=
(
int
)
(
p_vout
->
render
.
i_width
*
factor
);
newsize
.
height
=
(
int
)
(
p_vout
->
render
.
i
_height
*
factor
);
newsize
.
height
=
(
int
)
(
i_corrected
_height
*
factor
);
[
self
setContentSize
:
newsize
];
[
self
setContentSize
:
newsize
];
[
self
setFrameTopLeftPoint
:
topleftscreen
];
[
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