diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-01-30 12:59:01 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-01-30 12:59:01 +0300 |
commit | 9bafbe45499c43a45d356772ba3f2b747550b87d (patch) | |
tree | 36492a9c9bea2755ed860657b56ae7be44a2592a /source/blender/freestyle/intern | |
parent | 2d8ee7efa38758aa6de9383b6237d8948c7eecaf (diff) |
Fixed a bug that visible strokes are not rendered correctly when
the aspect ratio is not equal to 1:1.
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp b/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp index 78696a9d39e..95a0f642c82 100644 --- a/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp +++ b/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp @@ -140,8 +140,9 @@ void BlenderStrokeRenderer::RenderStrokeRepBasic(StrokeRep *iStrokeRep) const{ 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(); |