[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43186] trunk/blender/intern/cycles/ blender/blender_session.cpp: Fix #29760: cycles border render issue on 32 bit linux.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Jan 5 23:41:50 CET 2012


Revision: 43186
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43186
Author:   blendix
Date:     2012-01-05 22:41:46 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
Fix #29760: cycles border render issue on 32 bit linux.

Modified Paths:
--------------
    trunk/blender/intern/cycles/blender/blender_session.cpp

Modified: trunk/blender/intern/cycles/blender/blender_session.cpp
===================================================================
--- trunk/blender/intern/cycles/blender/blender_session.cpp	2012-01-05 22:30:08 UTC (rev 43185)
+++ trunk/blender/intern/cycles/blender/blender_session.cpp	2012-01-05 22:41:46 UTC (rev 43186)
@@ -46,8 +46,8 @@
 	/* offline render */
 	BL::RenderSettings r = b_scene.render();
 
-	width = (int)(r.resolution_x()*r.resolution_percentage()*0.01f);
-	height = (int)(r.resolution_y()*r.resolution_percentage()*0.01f);
+	width = (int)(r.resolution_x()*r.resolution_percentage()/100);
+	height = (int)(r.resolution_y()*r.resolution_percentage()/100);
 	background = true;
 	last_redraw_time = 0.0f;
 



More information about the Bf-blender-cvs mailing list