Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian
VTK
Commits
15ca5221
Commit
15ca5221
authored
9 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
vtkWin32OpenGLRenderWindow: static_cast to BYTE
MSVC2015 warns about narrowing.
parent
5367d9cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx
+6
-4
6 additions, 4 deletions
Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx
with
6 additions
and
4 deletions
Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx
+
6
−
4
View file @
15ca5221
...
...
@@ -658,19 +658,21 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormatPaletteAndContext(
return
;
}
BYTE
bpp_byte
=
static_cast
<
BYTE
>
(
bpp
);
BYTE
zbpp_byte
=
static_cast
<
BYTE
>
(
zbpp
);
PIXELFORMATDESCRIPTOR
pfd2
=
{
sizeof
(
PIXELFORMATDESCRIPTOR
),
/* size */
1
,
/* version */
dwFlags
,
/* support double-buffering */
PFD_TYPE_RGBA
,
/* color type */
bpp
,
/* preferred color depth */
bpp
_byte
,
/* preferred color depth */
0
,
0
,
0
,
0
,
0
,
0
,
/* color bits (ignored) */
this
->
AlphaBitPlanes
?
bpp
/
4
:
0
,
/* no alpha buffer */
static_cast
<
BYTE
>
(
this
->
AlphaBitPlanes
?
bpp
/
4
:
0
)
,
/* no alpha buffer */
0
,
/* alpha bits (ignored) */
0
,
/* no accumulation buffer */
0
,
0
,
0
,
0
,
/* accum bits (ignored) */
zbpp
,
/* depth buffer */
this
->
StencilCapable
,
/* stencil buffer */
zbpp
_byte
,
/* depth buffer */
static_cast
<
BYTE
>
(
this
->
StencilCapable
)
,
/* stencil buffer */
0
,
/* no auxiliary buffers */
PFD_MAIN_PLANE
,
/* main layer */
0
,
/* reserved */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment