diff options
author | ale <ale@FreeBSD.org> | 2006-12-14 15:38:25 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2006-12-14 15:38:25 +0800 |
commit | 5d00d186c192ccd99a748640016ca192045fb78f (patch) | |
tree | e70514be376fb48d05b9154a5c0c725e954fa8dd /devel | |
parent | 04a689bde32db58b22fad05d3a8e88a34b81799a (diff) | |
download | freebsd-ports-graphics-5d00d186c192ccd99a748640016ca192045fb78f.tar.gz freebsd-ports-graphics-5d00d186c192ccd99a748640016ca192045fb78f.tar.zst freebsd-ports-graphics-5d00d186c192ccd99a748640016ca192045fb78f.zip |
Fix color box drawing.
Submitted by: Lapo Luchini <lapo@lapo.it>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/charva/Makefile | 1 | ||||
-rw-r--r-- | devel/charva/files/patch-c_src_Toolkit.c | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/devel/charva/Makefile b/devel/charva/Makefile index 00545883ccb..da3e2a75b60 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 00000000000..ab2c57c977e --- /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
|