]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build error on older macOS versions
authorAlan Third <alan@idiocy.org>
Wed, 13 Sep 2023 19:26:54 +0000 (20:26 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 13 Sep 2023 19:27:49 +0000 (20:27 +0100)
* src/nsterm.m (ns_scroll_run): Use srcRect instead of destRect.

src/nsterm.m

index 33350575bcfcab6a29ec4de29accd8dbbfe11ca2..4e0dfa58c63627f4c86e39f89bbee1fef789f7f7 100644 (file)
@@ -2708,7 +2708,7 @@ ns_scroll_run (struct window *w, struct run *run)
 
     [view copyRect:srcRect to:dest];
 #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED < 101400
-    [view setNeedsDisplayInRect:destRect];
+    [view setNeedsDisplayInRect:srcRect];
 #endif
   }