Skip to content

Commit

Permalink
restore cliping off of padding area, avoiding image artefacts when sc…
Browse files Browse the repository at this point in the history
…rolling
  • Loading branch information
mintty committed Jun 20, 2020
1 parent 56dfa54 commit b1467de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/winimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,14 +651,12 @@ winimgs_paint(void)

HDC dc = GetDC(wnd);

#ifdef pre_clip
// this does not appear to be necessary
// clip off padding area, avoiding image artefacts when scrolling
RECT rc;
GetClientRect(wnd, &rc);
IntersectClipRect(dc, rc.left + PADDING, rc.top + PADDING,
rc.left + PADDING + term.cols * cell_width,
rc.top + PADDING + term.rows * cell_height);
#endif

// prepare detection of overwritten images for garbage collection
bool drawn[term.rows * term.cols];
Expand Down

0 comments on commit b1467de

Please sign in to comment.