aboutsummaryrefslogtreecommitdiffstats
path: root/devel/charva/files/patch-c_src_Toolkit.c
blob: 1a1fb852ae23ab4cedbfab800bbfbb4930136562 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- c/src/Toolkit.c.orig	2016-06-20 12:40:44 UTC
+++ c/src/Toolkit.c
@@ -372,6 +372,7 @@ JNIEXPORT void JNICALL Java_charva_awt_T
     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 @@ JNIEXPORT void JNICALL Java_charva_awt_T
 	        my_addch_with_clip(ACS_VLINE);   // right vertical line
 	    }
     }
+    attroff(attr);
 }
 
 JNIEXPORT void JNICALL Java_charva_awt_Toolkit_blankBoxNative