Browse Source

* Of course I had to fuck up something. Here, PS export works again.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
eafbe7dd4b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cucul/export_ps.c

+ 2
- 2
cucul/export_ps.c View File

@@ -90,7 +90,7 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_export *ex)
for(x = 0; x < qq->width; x++) for(x = 0; x < qq->width; x++)
{ {
cur += sprintf(cur, "1 0 translate\n %s csquare\n", cur += sprintf(cur, "1 0 translate\n %s csquare\n",
_cucul_rgba32_to_ansi4bg(*lineattr++));
palette[_cucul_rgba32_to_ansi4bg(*lineattr++)]);
} }


/* Return to beginning of the line, and jump to the next one */ /* Return to beginning of the line, and jump to the next one */
@@ -111,7 +111,7 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_export *ex)
cur += sprintf(cur, "newpath\n"); cur += sprintf(cur, "newpath\n");
cur += sprintf(cur, "%d %d moveto\n", (x + 1) * 6, y * 10); cur += sprintf(cur, "%d %d moveto\n", (x + 1) * 6, y * 10);
cur += sprintf(cur, "%s setrgbcolor\n", cur += sprintf(cur, "%s setrgbcolor\n",
_cucul_rgba32_to_ansi4fg(*lineattr++));
palette[_cucul_rgba32_to_ansi4fg(*lineattr++)]);


if(c < 0x00000020) if(c < 0x00000020)
cur += sprintf(cur, "(?) show\n"); cur += sprintf(cur, "(?) show\n");


Loading…
Cancel
Save