Mir

Code review comment for lp:~mir-team/mir/custom-input-regions-scale-with-surface-size

Revision history for this message
Kevin DuBois (kdub) wrote :

18 + auto x_scale = surface_rect.size.width.as_float() / size_when_input_rectangles_set.width.as_float();
19 + auto y_scale = surface_rect.size.height.as_float() / size_when_input_rectangles_set.height.as_float();

seems like a geom::Width / geom::Width should make a geom::Scalar (would save some line length)

« Back to merge proposal