From 1ff2491d889e9b7261c154e5ffc219d75f57a257 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 1 Jun 2017 15:31:39 +0800 Subject: [PATCH] Insure virtual screen dimensions support maximum zoom out with mintty on 180p --- screensize.cmd | 10 ++++++++++ tcap.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 screensize.cmd diff --git a/screensize.cmd b/screensize.cmd new file mode 100644 index 0000000..f37eba7 --- /dev/null +++ b/screensize.cmd @@ -0,0 +1,10 @@ +# Visualize Screen Dimensions +insert-string &cat $curwidth &cat "x" $pagelen +insert-string &rig "---------+" &sub 10 $curcol +&sub &div $curwidth 10 1 insert-string "---------+" +insert-string &lef "1234567890" &mod $curwidth 10 +end-of-file +&sub $pagelen 3 execute-command-line "insert-string &cat $curline ~n" +beginning-of-file +unmark-buffer +write-message $line diff --git a/tcap.c b/tcap.c index 07b44f4..86aa9a5 100644 --- a/tcap.c +++ b/tcap.c @@ -88,8 +88,8 @@ static char *CS, *DL, *AL, *SF, *SR; #endif struct terminal term = { - 210, /* actual 204 on 1920x1080 landscape terminal window */ - 500, /* actual 475 */ + 270, /* actual 269 on 1920x1080 landscape terminal window */ + 1910, /* actual 1901 */ 0, /* These four values are set dynamically at open time. */ 0, 0,