[vte/wip/drawing: 3/7] drawing: Remove special-casing for some characters
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/drawing: 3/7] drawing: Remove special-casing for some characters
- Date: Thu, 23 Aug 2012 18:40:48 +0000 (UTC)
commit 810a8bec839960b54b118fb7d20636133f53c800
Author: Christian Persch <chpe gnome org>
Date: Tue Aug 21 22:59:34 2012 +0200
drawing: Remove special-casing for some characters
There is no reason to support fallback drawing for these characters:
Â Â Â Ï â â â â â â â â â
src/vte.c | 181 -------------------------------------------------------------
1 files changed, 0 insertions(+), 181 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 4bb3113..c9d59e9 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -9284,18 +9284,6 @@ vte_unichar_is_local_graphic(vteunistr c)
return TRUE;
}
switch (c) {
- case 0x00a3: /* british pound */
- case 0x00b0: /* degree */
- case 0x00b1: /* plus/minus */
- case 0x00b7: /* bullet */
- case 0x03c0: /* pi */
- case 0x2190: /* left arrow */
- case 0x2191: /* up arrow */
- case 0x2192: /* right arrow */
- case 0x2193: /* down arrow */
- case 0x2260: /* != */
- case 0x2264: /* <= */
- case 0x2265: /* >= */
case 0x23ba: /* scanline 1/9 */
case 0x23bb: /* scanline 3/9 */
case 0x23bc: /* scanline 7/9 */
@@ -9308,7 +9296,6 @@ vte_unichar_is_local_graphic(vteunistr c)
case 0x2424: /* NL symbol */
case 0x2592: /* checkerboard */
case 0x25ae: /* solid rectangle */
- case 0x25c6: /* diamond */
return TRUE;
break;
default:
@@ -9462,147 +9449,6 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
x, ybottom - 1,
x, ycenter);
break;
- case 0x00a3:
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- /* British pound. An "L" with a hyphen. */
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2,
- (y + ycenter) / 2,
- (x + xcenter) / 2,
- (ycenter + ybottom) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2,
- (ycenter + ybottom) / 2,
- (xcenter + xright) / 2,
- (ycenter + ybottom) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- x, ycenter,
- xcenter + 1, ycenter);
- break;
- case 0x00b0: /* f */
- /* litle circle */
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter - 1, ycenter);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter + 1, ycenter);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter, ycenter - 1);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter, ycenter + 1);
- break;
- case 0x00b1: /* g */
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- /* +/- */
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- xcenter,
- (y + ycenter) / 2,
- xcenter,
- (ycenter + ybottom) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2,
- ycenter,
- (xcenter + xright) / 2,
- ycenter);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2,
- (ycenter + ybottom) / 2,
- (xcenter + xright) / 2,
- (ycenter + ybottom) / 2);
- break;
- case 0x00b7:
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- /* short hyphen? */
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- xcenter - 1, ycenter,
- xcenter + 1, ycenter);
- break;
- case 0x3c0: /* pi */
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2 - 1,
- (y + ycenter) / 2,
- (xright + xcenter) / 2 + 1,
- (y + ycenter) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (x + xcenter) / 2,
- (y + ycenter) / 2,
- (x + xcenter) / 2,
- (ybottom + ycenter) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- (xright + xcenter) / 2,
- (y + ycenter) / 2,
- (xright + xcenter) / 2,
- (ybottom + ycenter) / 2);
- break;
- /* case 0x2190: FIXME */
- /* case 0x2191: FIXME */
- /* case 0x2192: FIXME */
- /* case 0x2193: FIXME */
- /* case 0x2260: FIXME */
- case 0x2264: /* y */
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- /* <= */
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- xright - 1, y,
- x, (y + ycenter) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- x, (y + ycenter) / 2,
- xright - 1, ycenter);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- x, ycenter,
- xright - 1, (ycenter + ybottom) / 2);
- break;
- case 0x2265: /* z */
- xcenter--;
- ycenter--;
- xright--;
- ybottom--;
- /* >= */
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- x, y,
- xright - 1, (y + ycenter) / 2);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- xright - 1, (y + ycenter) / 2,
- x, ycenter);
- vte_terminal_draw_line(terminal,
- &terminal->pvt->palette[fore],
- xright - 1, ycenter,
- x, (ycenter + ybottom) / 2);
- break;
case 0x23ba: /* o */
vte_terminal_fill_rectangle(terminal,
&terminal->pvt->palette[fore],
@@ -10102,33 +9948,6 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
x, y,
xright - x, ybottom - y);
break;
- case 0x25c6:
- /* diamond */
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter - 2, ycenter);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter + 2, ycenter);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter, ycenter - 2);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter, ycenter + 2);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter - 1, ycenter - 1);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter - 1, ycenter + 1);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter + 1, ycenter - 1);
- vte_terminal_draw_point(terminal,
- &terminal->pvt->palette[fore],
- xcenter + 1, ycenter + 1);
- break;
default:
ret = FALSE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]