aboutsummaryrefslogtreecommitdiffstats
path: root/devel/charva
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-12-14 15:38:25 +0800
committerale <ale@FreeBSD.org>2006-12-14 15:38:25 +0800
commit5d00d186c192ccd99a748640016ca192045fb78f (patch)
treee70514be376fb48d05b9154a5c0c725e954fa8dd /devel/charva
parent04a689bde32db58b22fad05d3a8e88a34b81799a (diff)
downloadfreebsd-ports-gnome-5d00d186c192ccd99a748640016ca192045fb78f.tar.gz
freebsd-ports-gnome-5d00d186c192ccd99a748640016ca192045fb78f.tar.zst
freebsd-ports-gnome-5d00d186c192ccd99a748640016ca192045fb78f.zip
Fix color box drawing.
Submitted by: Lapo Luchini <lapo@lapo.it>
Diffstat (limited to 'devel/charva')
-rw-r--r--devel/charva/Makefile1
-rw-r--r--devel/charva/files/patch-c_src_Toolkit.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/devel/charva/Makefile b/devel/charva/Makefile
index 00545883ccb1..da3e2a75b60d 100644
--- a/devel/charva/Makefile
+++ b/devel/charva/Makefile
@@ -7,6 +7,7 @@
PORTNAME= charva
PORTVERSION= 1.1.4
+PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/devel/charva/files/patch-c_src_Toolkit.c b/devel/charva/files/patch-c_src_Toolkit.c
new file mode 100644
index 000000000000..ab2c57c977ed
--- /dev/null
+++ b/devel/charva/files/patch-c_src_Toolkit.c
@@ -0,0 +1,18 @@
+--- c/src/Toolkit.c.orig Wed Dec 13 12:29:03 2006
++++ c/src/Toolkit.c Wed Dec 13 12:35:30 2006
+@@ -372,6 +372,7 @@
+ if (colors_started)
+ attr = COLOR_PAIR(colorpair_);
+
++ attron(attr);
+ // If the top of the box is outside the clipping rectangle, don't bother
+ // to draw the top.
+ if (top_ >= top && top_ <= bottom) {
+@@ -414,6 +415,7 @@
+ my_addch_with_clip(ACS_VLINE); // right vertical line
+ }
+ }
++ attroff(attr);
+ }
+
+ JNIEXPORT void JNICALL Java_charva_awt_Toolkit_blankBoxNative