summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/en/screenshots.html4
-rw-r--r--html/screenshots/cd_nativewindow_xrender.pngbin0 -> 79985 bytes
-rw-r--r--html/screenshots/small/cd_nativewindow_xrender_small.pngbin0 -> 24701 bytes
-rw-r--r--src/xrender/cdxrender.c19
4 files changed, 6 insertions, 17 deletions
diff --git a/html/en/screenshots.html b/html/en/screenshots.html
index 0daac10..f3e20cb 100644
--- a/html/en/screenshots.html
+++ b/html/en/screenshots.html
@@ -61,7 +61,9 @@ if (contextplus) <strong>cdUseContextPlus</strong>(0);</pre>
<td>
<a href="../screenshots/cd_nativewindow_x11.png">
<img src="../screenshots/small/cd_nativewindow_x11_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_x11.png" width="400" height="264" class="style4" ></a></td>
- <td><img src="../screenshots/cd_nativewindow_xrender.png"></td>
+ <td>
+ <a href="../screenshots/cd_nativewindow_xrender.png">
+ <img src="../screenshots/small/cd_nativewindow_xrender_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_xrender.png" width="400" height="262" class="style4" ></a></td>
</tr>
<tr>
<th><a href="drv/gdiplus.html">GDK</a></th>
diff --git a/html/screenshots/cd_nativewindow_xrender.png b/html/screenshots/cd_nativewindow_xrender.png
new file mode 100644
index 0000000..886bae8
--- /dev/null
+++ b/html/screenshots/cd_nativewindow_xrender.png
Binary files differ
diff --git a/html/screenshots/small/cd_nativewindow_xrender_small.png b/html/screenshots/small/cd_nativewindow_xrender_small.png
new file mode 100644
index 0000000..c15dce6
--- /dev/null
+++ b/html/screenshots/small/cd_nativewindow_xrender_small.png
Binary files differ
diff --git a/src/xrender/cdxrender.c b/src/xrender/cdxrender.c
index 5f7e868..2f99da3 100644
--- a/src/xrender/cdxrender.c
+++ b/src/xrender/cdxrender.c
@@ -293,23 +293,10 @@ static void cdpoly(cdCtxCanvas* ctxcanvas, int mode, cdPoint* poly, int n)
}
break;
case CD_PATH:
+ cdSimPolyPath(ctxcanvas->canvas, poly, n);
+ break;
case CD_BEZIER:
- {
- cdfPoint* fpoly = malloc(sizeof(cdfPoint)*n); /* because we support cdfpoly */
-
- for (i = 0; i<n; i++)
- {
- fpoly[i].x = (double)poly[i].x;
- fpoly[i].y = (double)poly[i].y;
- }
-
- if (mode == CD_BEZIER)
- cdfSimPolyBezier(ctxcanvas->canvas, fpoly, n);
- else
- cdfSimPolyPath(ctxcanvas->canvas, fpoly, n);
-
- free(fpoly);
- }
+ cdSimPolyBezier(ctxcanvas->canvas, poly, n);
break;
case CD_FILL:
{