Commit 1c9726fd authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

Report pixel size of the text area only

If the window size is not an integer multiple of the font size, there are a few pixel left.
Images may only appear where text may, so don't report those pixels in reply to CSI 14 t.
parent e0b4b96a
Pipeline #141770 passed with stage
in 2 minutes and 6 seconds
......@@ -1548,8 +1548,8 @@ void Vt102Emulation::reportPixelSize()
snprintf(tmp,
sizeof(tmp),
"\033[4;%d;%dt",
_currentScreen->currentTerminalDisplay()->contentRect().height(),
_currentScreen->currentTerminalDisplay()->contentRect().width());
_currentScreen->currentTerminalDisplay()->terminalFont()->fontHeight() * _currentScreen->getLines(),
_currentScreen->currentTerminalDisplay()->terminalFont()->fontWidth() * _currentScreen->getColumns());
sendString(tmp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment