Skip to content

Commit

Permalink
Make transformations handles independent from canvas resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwarthog authored and morevnaproject committed Apr 7, 2014
1 parent 99f4129 commit cb695a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synfig-studio/src/gui/duckmatic.cpp
Expand Up @@ -2101,6 +2101,10 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle<Canva
if (scalar_y > 0.0) scalar_y = 1.0/scalar_y;
scalar_x /= zoom;
scalar_y /= zoom;
Real pw = canvas_interface->get_canvas()->rend_desc().get_pw();
Real ph = canvas_interface->get_canvas()->rend_desc().get_ph();
scalar_x *= 50.0 * fabs(pw);
scalar_y *= 50.0 * fabs(ph);

Duck::Handle duck;

Expand Down

0 comments on commit cb695a6

Please sign in to comment.