From 541a4c81aed6431c6bbc4ed7b6b0269167d08e54 Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Mon, 23 Sep 2013 13:20:58 -0700 Subject: [PATCH] fix msvc warnings --- examples/uvViewer/viewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/uvViewer/viewer.cpp b/examples/uvViewer/viewer.cpp index 6147104c..f0cbee42 100644 --- a/examples/uvViewer/viewer.cpp +++ b/examples/uvViewer/viewer.cpp @@ -489,7 +489,7 @@ createOsdMesh(const std::string &shape, int level, Scheme scheme = kCatmark) } hmesh->SetFVarInterpolateBoundaryMethod((OsdHbrMesh::InterpolateBoundaryMethod)g_fvarBoundary); - hmesh->SetFVarPropagateCorners(g_fvarPropagateCorners); + hmesh->SetFVarPropagateCorners(g_fvarPropagateCorners != 0); delete g_mesh; g_mesh = NULL; @@ -1303,7 +1303,7 @@ initHUD() g_fvarBoundary == OsdHbrMesh::k_InterpolateBoundaryAlwaysSharp, 350, 70, callbackBoundary, OsdHbrMesh::k_InterpolateBoundaryAlwaysSharp, 'b'); - g_hud.AddCheckBox("Propagate corners (C)", g_fvarPropagateCorners, + g_hud.AddCheckBox("Propagate corners (C)", g_fvarPropagateCorners != 0, 350, 110, callbackPropagateCorners, 0, 'c'); }