version 1.21, 2012/01/29 09:37:02 |
version 1.22, 2012/05/23 19:19:40 |
|
|
} |
} |
|
|
/* Set up pane border attributes. */ |
/* Set up pane border attributes. */ |
memcpy(&other_gc, &grid_default_cell, sizeof other_gc); |
memcpy(&other_gc, &grid_marker_cell, sizeof other_gc); |
memcpy(&active_gc, &grid_default_cell, sizeof active_gc); |
memcpy(&active_gc, &grid_marker_cell, sizeof active_gc); |
active_gc.data = other_gc.data = 'x'; /* not space */ |
|
active_gc.attr = other_gc.attr = GRID_ATTR_CHARSET; |
active_gc.attr = other_gc.attr = GRID_ATTR_CHARSET; |
fg = options_get_number(oo, "pane-border-fg"); |
fg = options_get_number(oo, "pane-border-fg"); |
colour_set_fg(&other_gc, fg); |
colour_set_fg(&other_gc, fg); |
|
|
px -= len * 3; |
px -= len * 3; |
py -= 2; |
py -= 2; |
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_marker_cell, sizeof gc); |
gc.data = '_'; /* not space */ |
|
if (w->active == wp) |
if (w->active == wp) |
colour_set_bg(&gc, active_colour); |
colour_set_bg(&gc, active_colour); |
else |
else |
|
|
tty_cursor(tty, xoff + wp->sx - len, yoff); |
tty_cursor(tty, xoff + wp->sx - len, yoff); |
|
|
draw_text: |
draw_text: |
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_marker_cell, sizeof gc); |
gc.data = '_'; /* not space */ |
|
if (w->active == wp) |
if (w->active == wp) |
colour_set_fg(&gc, active_colour); |
colour_set_fg(&gc, active_colour); |
else |
else |