Re: [PATCH weston 1/3] compositor-drm: Support overlays with transformed buffers

2012-12-06 Thread Kristian Høgsberg
On Wed, Dec 05, 2012 at 03:14:04PM +0200, Ander Conselvan de Oliveira wrote: > Make overlays work when the client uses a buffer with the same > transformation as the output. > > In order to calculate the destination rectangle, the same logic in > weston_surface_to_buffer_float() is needed, but wit

[PATCH weston 1/3] compositor-drm: Support overlays with transformed buffers

2012-12-05 Thread Ander Conselvan de Oliveira
Make overlays work when the client uses a buffer with the same transformation as the output. In order to calculate the destination rectangle, the same logic in weston_surface_to_buffer_float() is needed, but with the output dimensions instead. For that reason, this patch generalizes this function