changeset 938:5d140deadc68

[gaim-migrate @ 948] yes i'm still alive... and i fixed the unevenly-spaced background colors :) committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Sat, 30 Sep 2000 04:21:25 +0000
parents 189b780c1e07
children 69955d88ab42
files src/gtkhtml.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkhtml.c	Thu Sep 28 02:06:05 2000 +0000
+++ b/src/gtkhtml.c	Sat Sep 30 04:21:25 2000 +0000
@@ -2045,12 +2045,14 @@
 
 			/*end my stuff*/
 
-
 			if (hb->text && hb->back != NULL) {
 				int hwidth, hheight, hei, tmpcnt;
 				hei = get_line_height(html, hb);
 				gdk_window_get_size(html->html_area, &hwidth, &hheight);
 				gdk_gc_set_foreground(gc, hb->back);
+				/* we use a 2-pixel window border */
+				if (hb->x < 2)
+					hb->x = 2;
 				gdk_draw_rectangle(html->html_area, gc, TRUE /* filled */,
 							hb->x, hb->y - html->yoffset - hei - 6,
 							hwidth - shift - hb->x + 1, hei + hei + 2);
@@ -2058,7 +2060,7 @@
 					int eoff = hei + hei + 2;
 					eoff *= tmpcnt;
 					gdk_draw_rectangle(html->html_area, gc, TRUE,
-							1, hb->y - html->yoffset - hei - 6 + eoff,
+							2, hb->y - html->yoffset - hei - 6 + eoff,
 							hwidth, hei + hei + 2);
 				}
 			}
@@ -2094,14 +2096,14 @@
 			gdk_window_get_size(html->html_area, &hwidth, &hheight);
 			gdk_gc_set_foreground(gc, hb->back);
 			gdk_draw_rectangle(html->html_area, gc, TRUE,
-						1, hb->y - html->yoffset,
+						2, hb->y - html->yoffset,
 						hwidth, 5);
 			for (tmpcnt = 0; tmpcnt < hb->newline; tmpcnt++) {
 				int eoff = hei + hei + 2;
 				eoff *= tmpcnt;
 				eoff += 5;
 				gdk_draw_rectangle(html->html_area, gc, TRUE,
-						1, hb->y - html->yoffset + eoff,
+						2, hb->y - html->yoffset + eoff,
 						hwidth, hei + hei + 2);
 			}
 		}
@@ -2134,7 +2136,7 @@
 				eoff *= tmpcnt;
 				eoff += 5;
 				gdk_draw_rectangle(html->html_area, gc, TRUE,
-						1, hb->y - html->yoffset + eoff,
+						2, hb->y - html->yoffset + eoff,
 						hwidth, hei + hei + 2);
 			}
 		}