Fix #29760: cycles border render issue on 32 bit linux.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 5 Jan 2012 22:41:46 +0000 (22:41 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 5 Jan 2012 22:41:46 +0000 (22:41 +0000)
intern/cycles/blender/blender_session.cpp

index d8c65c7a607d0020e4e1ca5257de5b7e7c558c39..2702327b67fbe8a99d12d02887f8652d5de3d8f7 100644 (file)
@@ -46,8 +46,8 @@ BlenderSession::BlenderSession(BL::RenderEngine b_engine_, BL::BlendData b_data_
        /* 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;