summaryrefslogtreecommitdiff
path: root/saa
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-06 09:58:01 +0100
committerJakob Bornecrantz <jakob@vmware.com>2012-06-09 05:54:30 +0200
commit61df95a86f4997e342d50d7779b00aba2e8849a6 (patch)
tree117cbcc8d4c27b926bd2951db9994329e02dc109 /saa
parent46cdf0ed0ad9df66f36f95e27b209d454f67d526 (diff)
vmware: port vmware driver to new compat API
This is a port of the vmware driver to the new compat API. Tested-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'saa')
-rw-r--r--saa/saa.c4
-rw-r--r--saa/saa.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/saa/saa.c b/saa/saa.c
index 173c090..f2d68e9 100644
--- a/saa/saa.c
+++ b/saa/saa.c
@@ -594,7 +594,7 @@ saa_set_fallback_debug(ScreenPtr screen, Bool enable)
* screen private, before calling down to the next CloseScreen.
*/
Bool
-saa_close_screen(int i, ScreenPtr pScreen)
+saa_close_screen(CLOSE_SCREEN_ARGS_DECL)
{
struct saa_screen_priv *sscreen = saa_screen(pScreen);
struct saa_driver *driver = sscreen->driver;
@@ -624,7 +624,7 @@ saa_close_screen(int i, ScreenPtr pScreen)
free(sscreen);
- return (*pScreen->CloseScreen) (i, pScreen);
+ return (*pScreen->CloseScreen) (CLOSE_SCREEN_ARGS);
}
struct saa_driver *
diff --git a/saa/saa.h b/saa/saa.h
index c7aa3b6..4e5ced5 100644
--- a/saa/saa.h
+++ b/saa/saa.h
@@ -44,6 +44,8 @@
#include <damage.h>
#include <picturestr.h>
+#include "../src/compat-api.h"
+
#define SAA_VERSION_MAJOR 0
#define SAA_VERSION_MINOR 1
@@ -173,7 +175,7 @@ extern _X_EXPORT RegionPtr
saa_bitmap_to_region(PixmapPtr pPix);
extern _X_EXPORT Bool
-saa_close_screen(int i, ScreenPtr pScreen);
+saa_close_screen(CLOSE_SCREEN_ARGS_DECL);
extern _X_EXPORT Bool
saa_gc_reads_destination(DrawablePtr pDrawable, GCPtr pGC);