emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 f8d9e40d2c1: Attempt to fix redisplay problems on macOS


From: Eli Zaretskii
Subject: emacs-29 f8d9e40d2c1: Attempt to fix redisplay problems on macOS
Date: Thu, 18 May 2023 07:20:48 -0400 (EDT)

branch: emacs-29
commit f8d9e40d2c1d127a125adc097d985a0b6964a86c
Author: Aaron Jensen <aaronjensen@gmail.com>
Commit: Eli Zaretskii <eliz@gnu.org>

    Attempt to fix redisplay problems on macOS
    
    * src/nsterm.m (ns_scroll_run): Attempt to fix redisplay
    artifacts.  (Bug#63187)
---
 src/nsterm.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index c26528e0154..c809c0b824a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2704,11 +2704,12 @@ ns_scroll_run (struct window *w, struct run *run)
   {
     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
   }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]