summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpPushPixels.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-09-18 16:55:25 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-09-18 16:55:25 -0700
commit6504737b11ae763f9aa06fa55856440b1c86ef44 (patch)
treedd593cf0b5303d84b1c0aab4aeb0e118da437927 /xorg/X11R7.6/rdp/rdpPushPixels.c
parent3399b953ebd331c7d250e2be1e9a92fe4b48f7c3 (diff)
downloadxrdp-proprietary-6504737b11ae763f9aa06fa55856440b1c86ef44.tar.gz
xrdp-proprietary-6504737b11ae763f9aa06fa55856440b1c86ef44.zip
xorg: work on screen dirty update, still off by defualt, fix for rail
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpPushPixels.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpPushPixels.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/xorg/X11R7.6/rdp/rdpPushPixels.c b/xorg/X11R7.6/rdp/rdpPushPixels.c
index 06c5ba9f..2df01b8e 100644
--- a/xorg/X11R7.6/rdp/rdpPushPixels.c
+++ b/xorg/X11R7.6/rdp/rdpPushPixels.c
@@ -38,6 +38,8 @@ extern int g_Bpp; /* from rdpmain.c */
extern ScreenPtr g_pScreen; /* from rdpmain.c */
extern Bool g_wrapPixmap; /* from rdpmain.c */
extern int g_do_dirty_os; /* in rdpmain.c */
+extern int g_do_dirty_ons; /* in rdpmain.c */
+extern rdpPixmapRec g_screenPriv; /* in rdpmain.c */
extern GCOps g_rdpGCOps; /* from rdpdraw.c */
@@ -97,7 +99,7 @@ rdpPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr pDst,
post_process = 1;
if (g_do_dirty_os)
{
- LLOGLN(10, ("rdpPutImage: gettig dirty"));
+ LLOGLN(10, ("rdpPushPixels: gettig dirty"));
pDstPriv->is_dirty = 1;
pDirtyPriv = pDstPriv;
dirty_type = RDI_IMGLY;
@@ -119,8 +121,18 @@ rdpPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr pDst,
if (pDstWnd->viewable)
{
post_process = 1;
- rdpup_get_screen_image_rect(&id);
- got_id = 1;
+ if (g_do_dirty_ons)
+ {
+ LLOGLN(0, ("rdpPushPixels: gettig dirty"));
+ g_screenPriv.is_dirty = 1;
+ pDirtyPriv = &g_screenPriv;
+ dirty_type = RDI_IMGLL;
+ }
+ else
+ {
+ rdpup_get_screen_image_rect(&id);
+ got_id = 1;
+ }
}
}
}