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
fd78f83a
Commit
fd78f83a
authored
Aug 30, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
voutgl: fix AR in mozilla plugin
parent
ec3f4c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
34 deletions
+7
-34
modules/gui/macosx/voutgl.m
modules/gui/macosx/voutgl.m
+7
-34
No files found.
modules/gui/macosx/voutgl.m
View file @
fd78f83a
...
...
@@ -148,7 +148,7 @@ int E_(OpenVideoGL) ( vlc_object_t * p_this )
return
VLC_EGENERIC
;
}
else
{
// tell opengl not to sync buffer swap with vertical retrace
// tell opengl not to sync buffer swap with vertical retrace
(too inefficient)
GLint
param
=
0
;
aglSetInteger
(
p_vout
->
p_sys
->
agl_ctx
,
AGL_SWAP_INTERVAL
,
&
param
);
aglEnable
(
p_vout
->
p_sys
->
agl_ctx
,
AGL_SWAP_INTERVAL
);
...
...
@@ -489,44 +489,17 @@ static void aglEnd( vout_thread_t * p_vout )
static
void
aglReshape
(
vout_thread_t
*
p_vout
)
{
int
x
,
y
;
vlc_value_t
val
;
int
i_offx
=
p_vout
->
p_sys
->
i_offx
;
int
i_offy
=
p_vout
->
p_sys
->
i_offy
;
int
i_height
=
p_vout
->
p_sys
->
i_height
;
int
i_width
=
p_vout
->
p_sys
->
i_width
;
unsigned
int
x
,
y
;
unsigned
int
i_height
=
p_vout
->
p_sys
->
i_height
;
unsigned
int
i_width
=
p_vout
->
p_sys
->
i_width
;
Lock
(
p_vout
);
aglSetCurrentContext
(
p_vout
->
p_sys
->
agl_ctx
);
var_Get
(
p_vout
,
"macosx-stretch"
,
&
val
);
if
(
val
.
b_bool
)
{
x
=
i_width
;
y
=
i_height
;
}
else
if
(
i_height
*
p_vout
->
fmt_in
.
i_visible_width
*
p_vout
->
fmt_in
.
i_sar_num
<
i_width
*
p_vout
->
fmt_in
.
i_visible_height
*
p_vout
->
fmt_in
.
i_sar_den
)
{
x
=
(
i_height
*
p_vout
->
fmt_in
.
i_visible_width
*
p_vout
->
fmt_in
.
i_sar_num
)
/
(
p_vout
->
fmt_in
.
i_visible_height
*
p_vout
->
fmt_in
.
i_sar_den
);
vout_PlacePicture
(
p_vout
,
i_width
,
i_height
,
&
x
,
&
y
,
&
i_width
,
&
i_height
);
y
=
i_height
;
}
else
{
x
=
i_width
;
y
=
(
i_width
*
p_vout
->
fmt_in
.
i_visible_height
*
p_vout
->
fmt_in
.
i_sar_den
)
/
(
p_vout
->
fmt_in
.
i_visible_width
*
p_vout
->
fmt_in
.
i_sar_num
);
}
aglSetCurrentContext
(
p_vout
->
p_sys
->
agl_ctx
);
glViewport
(
i_offx
+
(
i_width
-
x
)
/
2
,
i_offy
+
(
i_height
-
y
)
/
2
,
x
,
y
);
glViewport
(
p_vout
->
p_sys
->
i_offx
+
x
,
p_vout
->
p_sys
->
i_offy
+
y
,
i_width
,
i_height
);
if
(
p_vout
->
p_sys
->
b_got_frame
)
{
...
...
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