summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpPolylines.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpPolylines.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpPolylines.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/xorg/X11R7.6/rdp/rdpPolylines.c b/xorg/X11R7.6/rdp/rdpPolylines.c
index d5208e42..977de9fd 100644
--- a/xorg/X11R7.6/rdp/rdpPolylines.c
+++ b/xorg/X11R7.6/rdp/rdpPolylines.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 */
@@ -180,13 +182,21 @@ rdpPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode,
}
else
{
- if (pDrawable->type == DRAWABLE_WINDOW)
+ pDstWnd = (WindowPtr)pDrawable;
+
+ if (pDstWnd->viewable)
{
- pDstWnd = (WindowPtr)pDrawable;
+ post_process = 1;
- if (pDstWnd->viewable)
+ if (g_do_dirty_ons)
+ {
+ LLOGLN(0, ("rdpPolylines: gettig dirty"));
+ g_screenPriv.is_dirty = 1;
+ pDirtyPriv = &g_screenPriv;
+ dirty_type = RDI_IMGLL;
+ }
+ else
{
- post_process = 1;
rdpup_get_screen_image_rect(&id);
got_id = 1;
}