Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
0432311c
Commit
0432311c
authored
Jul 18, 1995
by
Ken Martin
Browse files
fixed bug in the aspect ratio calculation
parent
d5505f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/XglrCam.cc
View file @
0432311c
...
@@ -242,7 +242,7 @@ void vtkXglrCamera::Render(vtkCamera *cam, vtkXglrRenderer *ren)
...
@@ -242,7 +242,7 @@ void vtkXglrCamera::Render(vtkCamera *cam, vtkXglrRenderer *ren)
xgl_context_new_frame
(
*
context
);
xgl_context_new_frame
(
*
context
);
}
}
aspect
[
0
]
=
size
[
0
]
/
size
[
1
];
aspect
[
0
]
=
((
float
)
size
[
0
])
/
((
float
)
size
[
1
]
)
;
aspect
[
1
]
=
1.0
;
aspect
[
1
]
=
1.0
;
vdc_bounds
.
xmin
=
-
1
;
vdc_bounds
.
xmin
=
-
1
;
...
...
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