# [EGIT PATCH 1/1] Respect background when drawing history in SWT.

1 messages from 2008-11-02 to 2008-11-02. Participants: Robin Rosenberg.
Thread: https://gitlist.dev/t/16141

## Robin Rosenberg, 2008-11-02 23:38

Subject: [EGIT PATCH 1/1] Respect background when drawing history in SWT.
Message-ID: <200811030039.00218.robin.rosenberg@dewire.com>
URL: https://gitlist.dev/e/200811030039.00218.robin.rosenberg%40dewire.com

```
Use transparent text background for drawing text to make the history
look nice when there is a background pattern or effects like alternating
background colors for each row.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../egit/ui/internal/history/SWTPlotRenderer.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/SWTPlotRenderer.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/SWTPlotRenderer.java
index 23ec255..c4ee282 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/SWTPlotRenderer.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/SWTPlotRenderer.java
@@ -89,7 +89,7 @@ protected void drawText(final String msg, final int x, final int y) {
 		final int texty = (y * 2 - textsz.y) / 2;
 		g.setForeground(cellFG);
 		g.setBackground(cellBG);
-		g.drawString(msg, cellX + x, cellY + texty);
+		g.drawString(msg, cellX + x, cellY + texty, true);
 	}
 
 	protected Color laneColor(final SWTLane myLane) {
-- 
1.6.0.3.578.g6a50

```
