From 232133b5a9dc9ee44865c17c298a4ee565f55d8f Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 25 Feb 2018 23:04:58 +0900 Subject: [PATCH] ensure terminal starts at 80x24 --- terminal.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 2aec5dda..84d8dd77 100644 --- a/terminal.c +++ b/terminal.c @@ -99,7 +99,7 @@ void term_redraw_cursor(); /* Some GUI-only options */ uint32_t window_width = 640; -uint32_t window_height = 408; +uint32_t window_height = 480; #define TERMINAL_TITLE_SIZE 512 char terminal_title[TERMINAL_TITLE_SIZE]; size_t terminal_title_length = 0; @@ -336,6 +336,15 @@ term_write_char( #endif } else { + if (val >= 0x2580 && val <= 0x2588) { + for (uint8_t i = 0; i < char_height; ++i) { + for (uint8_t j = 0; j < char_width; ++j) { + term_set_point(x+j,y+i,premultiply(_bg)); + } + } + draw_semi_block(val, x, y, _fg, _bg); + goto _extra_stuff; + } if (val > 128) { val = 4; } @@ -1394,6 +1403,9 @@ int main(int argc, char ** argv) { _fullscreen = 0; _no_frame = 0; + window_width = char_width * 80; + window_height = char_height * 24; + #if 0 static struct option long_opts[] = { {"fullscreen", no_argument, 0, 'F'},