diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2009-08-05 16:12:16 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2009-08-06 23:48:14 +0200 |
commit | e8ac2ed5dc4c2ac0a5e1e1f371f94c15b1c729dd (patch) | |
tree | d65f416d213077ad2594d8b182b6d34db2afc2dd /exa/exa_migration_mixed.c | |
parent | 9d2a7128d3e66b8c076a714d69f84bcad49391b9 (diff) |
exa: implement exaMoveInPixmap for "mixed"
- This can be used to force creation of driver pixmap.
- Not for 1 or 4 bpp.
- Driver can still fail (driver) pixmap creation.
Diffstat (limited to 'exa/exa_migration_mixed.c')
-rw-r--r-- | exa/exa_migration_mixed.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/exa/exa_migration_mixed.c b/exa/exa_migration_mixed.c index 24bdafbd6..771c2c342 100644 --- a/exa/exa_migration_mixed.c +++ b/exa/exa_migration_mixed.c @@ -170,3 +170,16 @@ exaDoMigration_mixed(ExaMigrationPtr pixmaps, int npixmaps, Bool can_accel) exaCreateDriverPixmap_mixed(pPixmap); } } + +void +exaMoveInPixmap_mixed(PixmapPtr pPixmap) +{ + ExaMigrationRec pixmaps[1]; + + pixmaps[0].as_dst = FALSE; + pixmaps[0].as_src = TRUE; + pixmaps[0].pPix = pPixmap; + pixmaps[0].pReg = NULL; + + exaDoMigration(pixmaps, 1, TRUE); +} |