Gitweb links:

...log 
http://git.netsurf-browser.org/libnspdf.git/shortlog/c4dd67804afc84fde84402649e5b32f2b00680c3
...commit 
http://git.netsurf-browser.org/libnspdf.git/commit/c4dd67804afc84fde84402649e5b32f2b00680c3
...tree 
http://git.netsurf-browser.org/libnspdf.git/tree/c4dd67804afc84fde84402649e5b32f2b00680c3

The branch, master has been updated
       via  c4dd67804afc84fde84402649e5b32f2b00680c3 (commit)
      from  4a18ec928fa6e6e2231fcef76e91eb1a4d57f588 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libnspdf.git/commit/?id=c4dd67804afc84fde84402649e5b32f2b00680c3
commit c4dd67804afc84fde84402649e5b32f2b00680c3
Author: Vincent Sanders <vi...@kyllikki.org>
Commit: Vincent Sanders <vi...@kyllikki.org>

    fix emiting beziers

diff --git a/src/page.c b/src/page.c
index 5156430..c5ea8b8 100644
--- a/src/page.c
+++ b/src/page.c
@@ -277,6 +277,19 @@ render_operation_l(struct content_operation *operation, 
struct graphics_state *g
 }
 
 static inline nspdferror
+render_operation_c(struct content_operation *operation, struct graphics_state 
*gs)
+{
+    gs->path[gs->path_idx++] = NSPDF_PATH_BEZIER;
+    gs->path[gs->path_idx++] = operation->u.number[0];
+    gs->path[gs->path_idx++] = operation->u.number[1];
+    gs->path[gs->path_idx++] = operation->u.number[2];
+    gs->path[gs->path_idx++] = operation->u.number[3];
+    gs->path[gs->path_idx++] = operation->u.number[4];
+    gs->path[gs->path_idx++] = operation->u.number[5];
+    return NSPDFERROR_OK;
+}
+
+static inline nspdferror
 render_operation_re(struct content_operation *operation, struct graphics_state 
*gs)
 {
     gs->path[gs->path_idx++] = NSPDF_PATH_MOVE;
@@ -485,6 +498,10 @@ nspdf_page_render(struct nspdf_doc *doc,
             res = render_operation_re(operation, &gs);
             break;
 
+        case CONTENT_OP_c: /* curve */
+            res = render_operation_c(operation, &gs);
+            break;
+
         case CONTENT_OP_h: /* close path */
             res = render_operation_h(&gs);
             break;


-----------------------------------------------------------------------

Summary of changes:
 src/page.c |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/page.c b/src/page.c
index 5156430..c5ea8b8 100644
--- a/src/page.c
+++ b/src/page.c
@@ -277,6 +277,19 @@ render_operation_l(struct content_operation *operation, 
struct graphics_state *g
 }
 
 static inline nspdferror
+render_operation_c(struct content_operation *operation, struct graphics_state 
*gs)
+{
+    gs->path[gs->path_idx++] = NSPDF_PATH_BEZIER;
+    gs->path[gs->path_idx++] = operation->u.number[0];
+    gs->path[gs->path_idx++] = operation->u.number[1];
+    gs->path[gs->path_idx++] = operation->u.number[2];
+    gs->path[gs->path_idx++] = operation->u.number[3];
+    gs->path[gs->path_idx++] = operation->u.number[4];
+    gs->path[gs->path_idx++] = operation->u.number[5];
+    return NSPDFERROR_OK;
+}
+
+static inline nspdferror
 render_operation_re(struct content_operation *operation, struct graphics_state 
*gs)
 {
     gs->path[gs->path_idx++] = NSPDF_PATH_MOVE;
@@ -485,6 +498,10 @@ nspdf_page_render(struct nspdf_doc *doc,
             res = render_operation_re(operation, &gs);
             break;
 
+        case CONTENT_OP_c: /* curve */
+            res = render_operation_c(operation, &gs);
+            break;
+
         case CONTENT_OP_h: /* close path */
             res = render_operation_h(&gs);
             break;


-- 
PDF Manipulation Library

_______________________________________________
netsurf-commits mailing list
netsurf-commits@netsurf-browser.org
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to