X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fsynfig%2Frenddesc.cpp;h=cc3882c4e53f0391cddcc28b0b6e876217194c78;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=b1b28326c349e1a60b139de0f0cc57b095f3a85f;hpb=d3408370fc3297609b3aa8d4ff7edf1f238df251;p=synfig.git diff --git a/synfig-core/tags/stable/src/synfig/renddesc.cpp b/synfig-core/tags/stable/src/synfig/renddesc.cpp index b1b2832..cc3882c 100644 --- a/synfig-core/tags/stable/src/synfig/renddesc.cpp +++ b/synfig-core/tags/stable/src/synfig/renddesc.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -250,7 +251,7 @@ RendDesc::set_y_res(Real y) int RendDesc::get_frame_start()const { - return time_begin*frame_rate; + return round_to_int(time_begin*frame_rate); } RendDesc & @@ -262,7 +263,7 @@ RendDesc::set_frame_start(int x) int RendDesc::get_frame_end()const { - return time_end*frame_rate; + return round_to_int(time_end*frame_rate); } RendDesc & @@ -396,7 +397,7 @@ const int & RendDesc::get_antialias()const { return a; } -//! Set the antilaias amount +//! Set the antialias amount RendDesc & RendDesc::set_antialias(const int &x) { a=x; return *this; } @@ -525,7 +526,7 @@ RendDesc::set_viewport(const Point &__tl, const Point &__br) { tl_=__tl; br_=__br; return *this; } RendDesc & -RendDesc::set_viewport(Real a,Real b,Real c,Real d) +RendDesc::set_viewport(Vector::value_type a, Vector::value_type b, Vector::value_type c, Vector::value_type d) { tl_=Point(a,b); br_=Point(c,d); return *this; } Real