File: 01-annotate.patch

package info (click to toggle)
crafty 23.4-10
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 3,296 kB
  • sloc: ansic: 30,650; cpp: 5,829; makefile: 890; sh: 46; perl: 30
file content (24 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Use FHS compliant paths by default
Author: Oliver Korff <ok@xynyx.de>
Last-Update: 2011-10-13

--- a/annotate.c
+++ b/annotate.c
@@ -568,7 +568,7 @@
   for (rank = RANK8; rank >= RANK1; rank--) {
     fprintf(annotate_out, "<TR>\n");
     for (file = FILEA; file <= FILEH; file++) {
-      (void) strcpy(filename, "bitmaps/");
+      (void) strcpy(filename, "/usr/share/crafty-bitmaps/");
       if ((rank + file) % 2)
         (void) strcat(filename, "w");
       else
@@ -628,7 +628,7 @@
           strcpy(alt, " ");
           break;
       }
-      strcat(filename, ".gif");
+      strcat(filename, ".png");
       fprintf(annotate_out, "<TD><IMG ALT=\"%s\" SRC=\"%s\"></TD>\n", alt,
           filename);
     }