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
ca7de811
Commit
ca7de811
authored
Oct 01, 2001
by
Will Schroeder
Browse files
ERR:Removed some warings
parent
e01a1ab5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkScalarsToColors.cxx
View file @
ca7de811
...
...
@@ -168,7 +168,7 @@ vtkUnsignedCharArray *vtkScalarsToColors::ConvertUnsignedCharToRGBA(
switch
(
numComp
)
{
case
1
:
alpha
=
this
->
Alpha
*
255
;
alpha
=
(
unsigned
char
)(
this
->
Alpha
*
255
)
;
for
(
i
=
0
;
i
<
numTuples
;
i
++
)
{
*
nptr
++
=
*
cptr
;
...
...
@@ -184,12 +184,12 @@ vtkUnsignedCharArray *vtkScalarsToColors::ConvertUnsignedCharToRGBA(
*
nptr
++
=
*
cptr
;
*
nptr
++
=
*
cptr
;
*
nptr
++
=
*
cptr
++
;
*
nptr
++
=
(
*
cptr
)
*
this
->
Alpha
;
cptr
++
;
*
nptr
++
=
(
unsigned
char
)
(
(
*
cptr
)
*
this
->
Alpha
)
;
cptr
++
;
}
break
;
case
3
:
alpha
=
this
->
Alpha
*
255
;
alpha
=
(
unsigned
char
)(
this
->
Alpha
*
255
)
;
for
(
i
=
0
;
i
<
numTuples
;
i
++
)
{
*
nptr
++
=
*
cptr
++
;
...
...
@@ -205,7 +205,7 @@ vtkUnsignedCharArray *vtkScalarsToColors::ConvertUnsignedCharToRGBA(
*
nptr
++
=
*
cptr
++
;
*
nptr
++
=
*
cptr
++
;
*
nptr
++
=
*
cptr
++
;
*
nptr
++
=
(
*
cptr
)
*
this
->
Alpha
;
cptr
++
;
*
nptr
++
=
(
unsigned
char
)(
(
*
cptr
)
*
this
->
Alpha
)
;
cptr
++
;
}
break
;
...
...
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