Bug fix in FTerm updateVTerm() for updates from vdesktop

This commit is contained in:
Markus Gans 2016-06-16 00:39:01 +02:00
parent 28c4a61997
commit 07fbe91cea
4 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,6 @@
2016-06-16 Markus Gans <guru.mail@muenster.de>
* Bug fix in FTerm updateVTerm() for updates from vdesktop
2016-06-13 Markus Gans <guru.mail@muenster.de>
* Improved title bar menu integration

View File

@ -534,9 +534,9 @@ void FDialog::onMouseDown (FMouseEvent* ev)
if ( old_focus )
old_focus->redraw();
}
else if ( focusFirstChild() )
if ( old_focus )
else if ( old_focus && focusFirstChild() )
old_focus->redraw();
updateTerminal();
}
if ( has_raised )
redraw();

View File

@ -2369,6 +2369,7 @@ void FTerm::updateVTerm (FTerm::term_area* area)
int ax, ay, aw, ah, rsh, bsh, y_end, ol;
FOptiAttr::char_data* tc; // terminal character
FOptiAttr::char_data* ac; // area character
bool modified = false;
if ( ! vterm_updates )
{
@ -2430,8 +2431,11 @@ void FTerm::updateVTerm (FTerm::term_area* area)
tc = &vterm->text[gy * vterm->width + gx - ol];
if ( ! isCovered(gx-ol, gy, area) )
{
memcpy (tc, ac, sizeof(FOptiAttr::char_data));
else
modified = true;
}
else if ( ! modified )
line_xmin++; // don't update covered character
}
_xmin = ax + line_xmin - ol;