[vte/wip/drawing] fixup! drawing: Special case drawing of Box Drawing characters
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/drawing] fixup! drawing: Special case drawing of Box Drawing characters
- Date: Wed, 22 Aug 2012 22:47:02 +0000 (UTC)
commit a218d5154fc1490e7541495f022523e4f081d67c
Author: Christian Persch <chpe gnome org>
Date: Thu Aug 23 00:46:48 2012 +0200
fixup! drawing: Special case drawing of Box Drawing characters
src/vte.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index d9976fa..958c10c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -9405,7 +9405,6 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
{
const guint v = c - 0x2500;
int size, line_width;
- double half_line_width;
size = (v & 2) ? row_height : width;
@@ -9437,8 +9436,7 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
}
line_width = (v & 1) ? heavy_line_width : light_line_width;
- if (line_width & 1) adjust = .5;
- half_line_width = line_width / 2.;
+ adjust = (line_width & 1) ? .5 : 0.;
cairo_set_line_width(cr, line_width);
cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]