summaryrefslogtreecommitdiff
path: root/lang/yabasic/patches/patch-graphic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/yabasic/patches/patch-graphic.c')
-rw-r--r--lang/yabasic/patches/patch-graphic.c31
1 files changed, 31 insertions, 0 deletions
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,