summaryrefslogtreecommitdiffstats
path: root/xorg/server/xrdpdev
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-07-21 20:19:21 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-07-21 20:19:21 -0700
commitc11cc0f82c76a3675dac66e0100f0e89a0595f81 (patch)
tree7e97be4c5b0998c302d3c0cd64278bcd3ca5fbb4 /xorg/server/xrdpdev
parent47dddfed0c211e49410673684832953d717f9a93 (diff)
downloadxrdp-proprietary-c11cc0f82c76a3675dac66e0100f0e89a0595f81.tar.gz
xrdp-proprietary-c11cc0f82c76a3675dac66e0100f0e89a0595f81.zip
xorg driver, wrap composite and glyphs
Diffstat (limited to 'xorg/server/xrdpdev')
-rw-r--r--xorg/server/xrdpdev/xrdpdev.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/xorg/server/xrdpdev/xrdpdev.c b/xorg/server/xrdpdev/xrdpdev.c
index a4f39b46..cc863d4d 100644
--- a/xorg/server/xrdpdev/xrdpdev.c
+++ b/xorg/server/xrdpdev/xrdpdev.c
@@ -45,6 +45,8 @@ This is the main driver file
#include "rdpCursor.h"
#include "rdpRandR.h"
#include "rdpMisc.h"
+#include "rdpComposite.h"
+#include "rdpGlyphs.h"
#define XRDP_DRIVER_NAME "XRDPDEV"
#define XRDP_NAME "XRDPDEV"
@@ -402,6 +404,7 @@ rdpScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
rdpPtr dev;
VisualPtr vis;
Bool vis_found;
+ PictureScreenPtr ps;
pScrn = xf86Screens[scrnIndex];
dev = XRDPPTR(pScrn);
@@ -507,6 +510,17 @@ rdpScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
dev->ModifyPixmapHeader = pScreen->ModifyPixmapHeader;
pScreen->ModifyPixmapHeader = rdpModifyPixmapHeader;
+ ps = GetPictureScreenIfSet(pScreen);
+ if (ps != 0)
+ {
+ /* composite */
+ dev->Composite = ps->Composite;
+ ps->Composite = rdpComposite;
+ /* glyphs */
+ dev->Glyphs = ps->Glyphs;
+ ps->Glyphs = rdpGlyphs;
+ }
+
g_timer = TimerSet(g_timer, 0, 10, rdpDeferredRandR, pScreen);
LLOGLN(0, ("rdpScreenInit: out"));