]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - cups/patches/cups-texttops-rotate-page.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / cups / patches / cups-texttops-rotate-page.patch
1 diff -up cups-1.4.3/filter/texttops.c.texttops-rotate-page cups-1.4.3/filter/texttops.c
2 --- cups-1.4.3/filter/texttops.c.texttops-rotate-page 2008-11-06 16:42:18.000000000 +0000
3 +++ cups-1.4.3/filter/texttops.c 2010-05-18 16:42:23.669940884 +0100
4 @@ -97,6 +97,13 @@ WritePage(void)
5
6 puts("gsave");
7
8 + /* If we're opereating in Landscape (Orientation == 1 or Orientation == 3)
9 + then rotate and translate the page */
10 + if ( Orientation & 1 ) {
11 + printf ("%d rotate\n", (Orientation & 3) * 90 );
12 + printf("0 %.0f neg translate\n", PageLength);
13 + }
14 +
15 if (PrettyPrint)
16 printf("%d H\n", NumPages);
17
18 @@ -212,7 +219,7 @@ WriteProlog(const char *title, /* I - T
19
20 puts("%!PS-Adobe-3.0");
21 printf("%%%%BoundingBox: 0 0 %.0f %.0f\n", PageWidth, PageLength);
22 - printf("%%cupsRotation: %d\n", (Orientation & 3) * 90);
23 + puts("%cupsRotation: 0");
24 puts("%%Creator: texttops/" CUPS_SVERSION);
25 printf("%%%%CreationDate: %s\n", curdate);
26 WriteTextComment("Title", title);
27 @@ -549,6 +556,8 @@ WriteProlog(const char *title, /* I - T
28 puts("%%EndComments");
29
30 puts("%%BeginProlog");
31 + printf("%%%%Orientation: %s\n",
32 + Orientation & 1 ? "Landscape" : "Portrait");
33
34 /*
35 * Download any missing fonts...