mudgangster

Log | Files | Refs

commit df3232724f2d62ff014f73d37f00947dd845f736
parent cd37597d9a58f976630a03facc79a1922224c3ec
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue,  4 Sep 2018 13:58:10 +0300

Top/bottom stoppers

Diffstat:
src/x11.cc | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/x11.cc b/src/x11.cc @@ -199,6 +199,18 @@ void ui_draw_char( int left, int top, char c, Colour colour, bool bold ) { return; } + if( uint8_t( c ) == 193 ) { // bottom stopper + ui_fill_rect( left + left_spacing, top, 1, top_spacing, colour, bold ); + ui_fill_rect( left, top + top_spacing, Style.font.width, 1, colour, bold ); + return; + } + + if( uint8_t( c ) == 194 ) { // top stopper + ui_fill_rect( left + left_spacing, top + top_spacing, 1, bot_spacing, colour, bold ); + ui_fill_rect( left, top + top_spacing, Style.font.width, 1, colour, bold ); + return; + } + if( uint8_t( c ) == 195 ) { // left stopper ui_fill_rect( left + left_spacing, top + top_spacing, right_spacing, 1, colour, bold ); ui_fill_rect( left + left_spacing, top, 1, line_height, colour, bold );