Revision: 2046
http://synfig.svn.sourceforge.net/synfig/?rev=2046&view=rev
Author: genete
Date: 2008-09-11 15:00:44 +0000 (Thu, 11 Sep 2008)
Log Message:
-----------
Fix the aspect ratio bug introduced by the previous commits of preferred X/Y
new document size.
Modified Paths:
--------------
synfig-studio/trunk/src/gtkmm/app.cpp
Modified: synfig-studio/trunk/src/gtkmm/app.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/app.cpp 2008-09-11 09:32:25 UTC (rev
2045)
+++ synfig-studio/trunk/src/gtkmm/app.cpp 2008-09-11 15:00:44 UTC (rev
2046)
@@ -2398,8 +2398,10 @@
canvas->rend_desc().set_time_end(5.0);
canvas->rend_desc().set_x_res(DPI2DPM(72.0f));
canvas->rend_desc().set_y_res(DPI2DPM(72.0f));
- canvas->rend_desc().set_tl(Vector(-4,2.25));
- canvas->rend_desc().set_br(Vector(4,-2.25));
+ // The top left and botton right positions are expressed in units
+ // Original convention is that 1 unit = 60 pixels
+
canvas->rend_desc().set_tl(Vector(-(preferred_x_size/60.0)/2.0,(preferred_y_size/60.0)/2.0));
+
canvas->rend_desc().set_br(Vector((preferred_x_size/60.0)/2.0,-(preferred_y_size/60.0)/2.0));
canvas->rend_desc().set_w(preferred_x_size);
canvas->rend_desc().set_h(preferred_y_size);
canvas->rend_desc().set_antialias(1);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl