[Bf-blender-cvs] [a1d1b07] soc-2014-viewport_fx: removed apparent overly verbose conversion of int to bool in GHOST_C-api.cpp

Jason Wilkins noreply at git.blender.org
Thu Jul 10 04:32:05 CEST 2014


Commit: a1d1b07eb685313d3463d7f9d4b79a4ff747c3b7
Author: Jason Wilkins
Date:   Wed Jul 9 18:06:07 2014 -0500
https://developer.blender.org/rBa1d1b07eb685313d3463d7f9d4b79a4ff747c3b7

removed apparent overly verbose conversion of int to bool in GHOST_C-api.cpp

===================================================================

M	intern/ghost/intern/GHOST_C-api.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp
index f074e2b..5a5d12c 100644
--- a/intern/ghost/intern/GHOST_C-api.cpp
+++ b/intern/ghost/intern/GHOST_C-api.cpp
@@ -144,15 +144,9 @@ GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle,
                                       const GHOST_TUns16 numOfAASamples)
 {
 	GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
-	bool bstereoVisual;
-
-	if (stereoVisual)
-		bstereoVisual = true;
-	else
-		bstereoVisual = false;
 
 	return (GHOST_WindowHandle) system->createWindow(title, left, top, width, height,
-	                                                 state, type, bstereoVisual, false,
+	                                                 state, type, stereoVisual != 0, false,
 	                                                 numOfAASamples);
 }




More information about the Bf-blender-cvs mailing list