summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpFillPolygon.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpFillPolygon.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpFillPolygon.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/xorg/X11R7.6/rdp/rdpFillPolygon.c b/xorg/X11R7.6/rdp/rdpFillPolygon.c
index 6ecba893..11664ae3 100644
--- a/xorg/X11R7.6/rdp/rdpFillPolygon.c
+++ b/xorg/X11R7.6/rdp/rdpFillPolygon.c
@@ -166,23 +166,26 @@ rdpFillPolygon(DrawablePtr pDrawable, GCPtr pGC,
}
else
{
- pDstWnd = (WindowPtr)pDrawable;
-
- if (pDstWnd->viewable)
+ if (pDrawable->type == DRAWABLE_WINDOW)
{
- post_process = 1;
+ pDstWnd = (WindowPtr)pDrawable;
- if (g_do_dirty_ons)
- {
- LLOGLN(0, ("rdpFillPolygon: gettig dirty"));
- g_screenPriv.is_dirty = 1;
- pDirtyPriv = &g_screenPriv;
- dirty_type = RDI_IMGLL;
- }
- else
+ if (pDstWnd->viewable)
{
- rdpup_get_screen_image_rect(&id);
- got_id = 1;
+ post_process = 1;
+
+ if (g_do_dirty_ons)
+ {
+ LLOGLN(0, ("rdpFillPolygon: gettig dirty"));
+ g_screenPriv.is_dirty = 1;
+ pDirtyPriv = &g_screenPriv;
+ dirty_type = RDI_IMGLL;
+ }
+ else
+ {
+ rdpup_get_screen_image_rect(&id);
+ got_id = 1;
+ }
}
}
}