summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpPolyPoint.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-09-19 21:18:03 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-09-19 21:18:03 -0700
commit03f47098e4989a37a4099497db8d98bdf692f371 (patch)
tree7c32a67faa27b4bea968d3f7b23540ee63df8ceb /xorg/X11R7.6/rdp/rdpPolyPoint.c
parent1123323fda6d128fb98b0427e0ea5f6a2dc9e632 (diff)
parent6504737b11ae763f9aa06fa55856440b1c86ef44 (diff)
downloadxrdp-proprietary-03f47098e4989a37a4099497db8d98bdf692f371.tar.gz
xrdp-proprietary-03f47098e4989a37a4099497db8d98bdf692f371.zip
o fixed merge conflicts
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpPolyPoint.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpPolyPoint.c39
1 files changed, 13 insertions, 26 deletions
diff --git a/xorg/X11R7.6/rdp/rdpPolyPoint.c b/xorg/X11R7.6/rdp/rdpPolyPoint.c
index ff112782..7ab89106 100644
--- a/xorg/X11R7.6/rdp/rdpPolyPoint.c
+++ b/xorg/X11R7.6/rdp/rdpPolyPoint.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 */
@@ -98,40 +100,25 @@ rdpPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode,
for (i = 0; i < npt; i++)
{
- pts[i].x = pDrawable->x + in_pts[i].x;
- pts[i].y = pDrawable->y + in_pts[i].y;
+ pDstWnd = (WindowPtr)pDrawable;
- if (i == 0)
+ if (pDstWnd->viewable)
{
- total_box.x1 = pts[0].x;
- total_box.y1 = pts[0].y;
- total_box.x2 = pts[0].x;
- total_box.y2 = pts[0].y;
- }
- else
- {
- if (pts[i].x < total_box.x1)
- {
- total_box.x1 = pts[i].x;
- }
-
- if (pts[i].y < total_box.y1)
- {
- total_box.y1 = pts[i].y;
- }
+ post_process = 1;
- if (pts[i].x > total_box.x2)
+ if (g_do_dirty_ons)
{
- total_box.x2 = pts[i].x;
+ LLOGLN(0, ("rdpPolyPoint: gettig dirty"));
+ g_screenPriv.is_dirty = 1;
+ pDirtyPriv = &g_screenPriv;
+ dirty_type = RDI_IMGLL;
}
-
- if (pts[i].y > total_box.y2)
+ else
{
- total_box.y2 = pts[i].y;
+ rdpup_get_screen_image_rect(&id);
+ got_id = 1;
}
}
-
- /* todo, use this total_box */
}
/* do original call */