Add a --scale-from option
authorAaron Plattner <aplattner@nvidia.com>
Mon, 23 Apr 2012 19:41:15 +0000 (12:41 -0700)
committerAaron Plattner <aplattner@nvidia.com>
Thu, 26 Apr 2012 02:50:19 +0000 (19:50 -0700)
commit1e5a973ad2da9aaf3c025656db4ba83ff9e6c207
treebec18614a273fda40d326804c0d405025585535d
parent45b21c41ef3abd73de11d1adc6f5475105e1a5b7
Add a --scale-from option

A typical case for wanting to specify a scale on an output is making your
framebuffer be one size and scaling it to fill an output of a different size.
Instead of making the user calculate the scaling factors to be specified by
--scale, add a new option, --scale-from, that lets the user specify the
framebuffer size directly.  Compute the appropriate transform to achieve the
desired target size.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Andy Ritger <aritger@nvidia.com>
man/xrandr.man
xrandr.c