Attempt to fix redisplay problems on macOS

* src/nsterm.m (ns_scroll_run): Attempt to fix redisplay
artifacts.  (Bug#63187)
This commit is contained in:
Aaron Jensen 2023-05-18 14:20:18 +03:00 committed by Eli Zaretskii
parent 4daa6f7049
commit f8d9e40d2c

View file

@ -2704,11 +2704,12 @@ Hide the window (X11 semantics)
{
NSRect srcRect = NSMakeRect (x, from_y, width, height);
NSPoint dest = NSMakePoint (x, to_y);
NSRect destRect = NSMakeRect (x, from_y, width, height);
EmacsView *view = FRAME_NS_VIEW (f);
[view copyRect:srcRect to:dest];
#ifdef NS_IMPL_COCOA
[view setNeedsDisplayInRect:srcRect];
[view setNeedsDisplayInRect:destRect];
#endif
}