pkgsrc/graphics/GMT/patches/patch-ai
2001-05-19 23:46:38 +00:00

31 lines
1.5 KiB
Text

$NetBSD: patch-ai,v 1.3 2001/05/19 23:46:38 jtb Exp $
--- src/pslib.c.orig Thu Apr 19 18:02:08 2001
+++ src/pslib.c
@@ -786,7 +786,7 @@
if ((image_no >= 0 && image_no < N_PATTERNS) && ps_pattern_status[image_no][invert]) return (image_no); /* Already done this */
if ((image_no >= 0 && image_no < N_PATTERNS)) { /* Premade pattern yet not used */
- sprintf (file, "%s%cshare%cps_pattern_%2.2d.ras\0", PSHOME, DIR_DELIM, DIR_DELIM, image_no);
+ sprintf (file, "%s%cshare%cgmt%cps_pattern_%2.2d.ras\0", PSHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, image_no);
ps_pattern_status[image_no][invert] = 1;
}
else { /* User image, check to see if already used */
@@ -804,7 +804,7 @@
if (!access (imagefile, R_OK))
strcpy (file, imagefile);
else
- sprintf (file, "%s%cshare%c%s\0", PSHOME, DIR_DELIM, DIR_DELIM, imagefile);
+ sprintf (file, "%s%cshare%cgmt%c%s\0", PSHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, imagefile);
}
ps_user_image[ps_n_userimages].name = (char *) ps_memory (VNULL, (size_t)(strlen (imagefile)+1), sizeof (char));
strcpy (ps_user_image[ps_n_userimages].name, imagefile);
@@ -3189,7 +3189,7 @@
/* Load PSL_text procedures from file for now */
if (PSL_first) {
- sprintf (line, "%s%cshare%cPSL_text.ps\0", PSHOME, DIR_DELIM, DIR_DELIM);
+ sprintf (line, "%s%cshare%cgmt%cPSL_text.ps\0", PSHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM);
if ((fp = fopen (line, "r")) == NULL) {
fprintf (stderr, "pslib: ERROR: Cannot open file %s\n", line);