summaryrefslogtreecommitdiff
path: root/vmwgfx
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2012-02-01 16:59:13 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2012-02-02 10:28:55 +0100
commit8ff19c2b2f288d6851b444dbda39544980837b73 (patch)
tree332b22c6be348055cea8fc0d429dd16e648cae60 /vmwgfx
parent193b5118199028ea0180785bb3f4c8a16359b8b0 (diff)
vmwgfx: Avoid including a library header and use pixman for type conversion
The PictTransform type is a typedef of a pixman type. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'vmwgfx')
-rw-r--r--vmwgfx/vmwgfx_xa_composite.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/vmwgfx/vmwgfx_xa_composite.c b/vmwgfx/vmwgfx_xa_composite.c
index a2e3970..32246e8 100644
--- a/vmwgfx/vmwgfx_xa_composite.c
+++ b/vmwgfx/vmwgfx_xa_composite.c
@@ -33,8 +33,8 @@
#include "config.h"
#endif
+#include <pixman.h>
#include <picturestr.h>
-#include <X11/extensions/Xrender.h>
#include "xa_composite.h"
#include "vmwgfx_saa.h"
#include "vmwgfx_saa_priv.h"
@@ -75,17 +75,17 @@ vmwgfx_matrix_from_pict_transform(PictTransform *trans, float *matrix)
if (!trans)
return FALSE;
- matrix[0] = XFixedToDouble(trans->matrix[0][0]);
- matrix[3] = XFixedToDouble(trans->matrix[0][1]);
- matrix[6] = XFixedToDouble(trans->matrix[0][2]);
+ matrix[0] = pixman_fixed_to_double(trans->matrix[0][0]);
+ matrix[3] = pixman_fixed_to_double(trans->matrix[0][1]);
+ matrix[6] = pixman_fixed_to_double(trans->matrix[0][2]);
- matrix[1] = XFixedToDouble(trans->matrix[1][0]);
- matrix[4] = XFixedToDouble(trans->matrix[1][1]);
- matrix[7] = XFixedToDouble(trans->matrix[1][2]);
+ matrix[1] = pixman_fixed_to_double(trans->matrix[1][0]);
+ matrix[4] = pixman_fixed_to_double(trans->matrix[1][1]);
+ matrix[7] = pixman_fixed_to_double(trans->matrix[1][2]);
- matrix[2] = XFixedToDouble(trans->matrix[2][0]);
- matrix[5] = XFixedToDouble(trans->matrix[2][1]);
- matrix[8] = XFixedToDouble(trans->matrix[2][2]);
+ matrix[2] = pixman_fixed_to_double(trans->matrix[2][0]);
+ matrix[5] = pixman_fixed_to_double(trans->matrix[2][1]);
+ matrix[8] = pixman_fixed_to_double(trans->matrix[2][2]);
return TRUE;
}