compositor: rewrite draw and input coordinate transformations
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 24 Jan 2012 07:59:29 +0000 (09:59 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Fri, 27 Jan 2012 14:15:02 +0000 (16:15 +0200)
commite0f3cb25e8f1c251891abb203ed3707f810a35d2
treef866cd933a8965f51eecb48f4e6441f21775cbc0
parentbc0b7e7756fe3dec91ca9f3ab3148ca527a669a9
compositor: rewrite draw and input coordinate transformations

For unifying the coordinate system handling, introduce functions for
converting explicitly between the global and the surface local
coordinate systems.

Use these functions in the input path, replacing
weston_surface_transform().

In the draw path, rewrite transform_vertex() to take in surface local
coordinates.

As shell now uses the new functions, the rotation origin is properly
placed in the middle of the surface.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c
src/compositor.h
src/shell.c