[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26426] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp: Fixed a bug that visible strokes are not rendered correctly when

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Sat Jan 30 10:59:02 CET 2010


Revision: 26426
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26426
Author:   kjym3
Date:     2010-01-30 10:59:01 +0100 (Sat, 30 Jan 2010)

Log Message:
-----------
Fixed a bug that visible strokes are not rendered correctly when
the aspect ratio is not equal to 1:1.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp	2010-01-30 09:53:55 UTC (rev 26425)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp	2010-01-30 09:59:01 UTC (rev 26426)
@@ -140,8 +140,9 @@
 	  StrokeVertexRep *svRep[3];
 	  Vec3r color[3];
 	  unsigned int vertex_index;
+	  float ycor = ((float)freestyle_scene->r.yasp) / ((float)freestyle_scene->r.xasp);
 	  float width = freestyle_scene->r.xsch;
-	  float height = freestyle_scene->r.ysch;
+	  float height = freestyle_scene->r.ysch * ycor;
 	  Vec2r p;
 	
 	  for(vector<Strip*>::iterator s=strips.begin(), send=strips.end();





More information about the Bf-blender-cvs mailing list