Browse Source

* Fixed postscript exporter, image in not at the bottom of the page anymore

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 19 years ago
parent
commit
5612b86ce6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cucul/export.c

+ 2
- 0
cucul/export.c View File

@@ -587,6 +587,7 @@ static void export_ps(cucul_canvas_t *cv, cucul_buffer_t *ex)


/* Header */ /* Header */
cur += sprintf(cur, "%s", ps_header); cur += sprintf(cur, "%s", ps_header);
cur += sprintf(cur, "0 %d translate\n", cv->height);


/* Background, drawn using csquare macro defined in header */ /* Background, drawn using csquare macro defined in header */
for(y = cv->height; y--; ) for(y = cv->height; y--; )
@@ -608,6 +609,7 @@ static void export_ps(cucul_canvas_t *cv, cucul_buffer_t *ex)
} }


cur += sprintf(cur, "grestore\n"); /* Restore transformation matrix */ cur += sprintf(cur, "grestore\n"); /* Restore transformation matrix */
cur += sprintf(cur, "0 %d translate\n", cv->height*10);


for(y = cv->height; y--; ) for(y = cv->height; y--; )
{ {


Loading…
Cancel
Save