Skip to content

Commit

Permalink
WinGUI display : I don't think the code that displays a preceding and…
Browse files Browse the repository at this point in the history
… trailing character is really needed to avoid stray pixel garbage. In fact, I can't see how that could possibly have ever worked. It caused some (not all) of the flickering problem described in issue #322.
  • Loading branch information
Bill-Gray committed Oct 3, 2024
1 parent a96ed0f commit 8466f73
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions wingui/pdcdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,17 +393,9 @@ static void PDC_transform_line_given_hdc( const HDC hdc, const int lineno,
return;
}
assert( x >= 0);
if( len < SP->cols - x && (srcp[len] & A_CHARTEXT) < MAX_UNICODE)
len++; /* draw an extra char to avoid leaving garbage on screen */
assert( len <= SP->cols - x);
assert( lineno < SP->lines && len > 0 && lineno >= 0);
assert( (srcp[len - 1] & A_CHARTEXT) != MAX_UNICODE);
if( x && (srcp[-1] & A_CHARTEXT) < MAX_UNICODE)
{ /* back up by one character to avoid */
x--; /* leaving garbage on the screen */
len++;
srcp--;
}
if( lineno == SP->cursrow && SP->curscol >= x && SP->curscol < x + len)
if( PDC_current_cursor_state( ))
cursor_overwritten = TRUE;
Expand Down

0 comments on commit 8466f73

Please sign in to comment.