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
c811711d
Commit
c811711d
authored
Jul 10, 1995
by
Ken Martin
Browse files
changed get set rgb data so it's right side up
parent
2657b8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/GlrRenW.cc
View file @
c811711d
...
...
@@ -733,7 +733,7 @@ unsigned char *vtkGlrRenderWindow::GetPixelData(int x1, int y1, int x2, int y2,
readsource
(
SRC_BACK
);
}
p_data
=
data
;
for
(
yloop
=
y_
low
;
yloop
<
=
y_
hi
;
yloop
++
)
for
(
yloop
=
y_
hi
;
yloop
>
=
y_
low
;
yloop
--
)
{
// read in a row of pixels
lrectread
(
x_low
,
yloop
,
x_hi
,
yloop
,
buffer
);
...
...
@@ -803,7 +803,7 @@ void vtkGlrRenderWindow::SetPixelData(int x1, int y1, int x2, int y2,
/* now write the binary info one row at a time */
p_data
=
data
;
for
(
yloop
=
y_
low
;
yloop
<
=
y_
hi
;
yloop
++
)
for
(
yloop
=
y_
hi
;
yloop
>
=
y_
low
;
yloop
--
)
{
for
(
xloop
=
0
;
xloop
<=
(
abs
(
x2
-
x1
));
xloop
++
)
{
...
...
Write
Preview
Supports
Markdown
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