summaryrefslogtreecommitdiff
path: root/lang/yabasic
diff options
context:
space:
mode:
Diffstat (limited to 'lang/yabasic')
-rw-r--r--lang/yabasic/distinfo3
-rw-r--r--lang/yabasic/patches/patch-graphic.c31
2 files changed, 33 insertions, 1 deletions
diff --git a/lang/yabasic/distinfo b/lang/yabasic/distinfo
index c9619d48ea8..712a8346c28 100644
--- a/lang/yabasic/distinfo
+++ b/lang/yabasic/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2012/06/04 11:30:21 obache Exp $
+$NetBSD: distinfo,v 1.6 2012/12/20 21:49:06 joerg Exp $
SHA1 (yabasic-2.763.tar.gz) = 1cf663d20be64d7ca90157cabfdc09d95b0e43d4
RMD160 (yabasic-2.763.tar.gz) = 745734f06c81be50799c5b7678ad625bb3882d3b
Size (yabasic-2.763.tar.gz) = 538760 bytes
+SHA1 (patch-graphic.c) = cc881048f609f0eb3ead673419a4c8a63c47b1d3
diff --git a/lang/yabasic/patches/patch-graphic.c b/lang/yabasic/patches/patch-graphic.c
new file mode 100644
index 00000000000..0faed1f23fd
--- /dev/null
+++ b/lang/yabasic/patches/patch-graphic.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-graphic.c,v 1.1 2012/12/20 21:49:07 joerg Exp $
+
+--- graphic.c.orig 2012-12-20 12:19:11.000000000 +0000
++++ graphic.c
+@@ -748,7 +748,7 @@ grafinit (void)
+ &visualinfo))
+ {
+ error (ERROR, "Could not get any TrueColor visual");
+- return;
++ return FALSE;
+ }
+
+ /* convert color masks in more convenient values */
+@@ -790,7 +790,7 @@ grafinit (void)
+ sprintf (string, "Could not find foreground color '%s'\n",
+ background);
+ error (ERROR, string);
+- return;
++ return FALSE;
+ }
+ forepixel =
+ rgb_to_pixel (best_match.red >> 8, best_match.green >> 8,
+@@ -806,7 +806,7 @@ grafinit (void)
+ sprintf (string, "Could not find background color '%s'\n",
+ background);
+ error (ERROR, string);
+- return;
++ return FALSE;
+ }
+ backpixel =
+ rgb_to_pixel (best_match.red >> 8, best_match.green >> 8,