console/libgnt/gntmain.c

changeset 14689
f4668b9e83a8
parent 14688
0dda89fa053e
child 14742
57b62b1b4646
--- a/console/libgnt/gntmain.c	Tue Sep 26 18:54:12 2006 +0000
+++ b/console/libgnt/gntmain.c	Tue Sep 26 20:07:02 2006 +0000
@@ -744,6 +744,11 @@
 	d = win->window;
 	gnt_widget_get_size(win, &w, &h);
 
+	if (gnt_widget_has_shadow(win)) {
+		--w;
+		--h;
+	}
+
 	/* the top and bottom */
 	for (i = 0; i < w; i += reverse_char(d, 0, i, set));
 	for (i = 0; i < w; i += reverse_char(d, h-1, i, set));

mercurial