]> git.eshelyaron.com Git - emacs.git/commitdiff
(ns_draw_window_cursor): .*ScreenUpdates() calls only if NS_IMPL_COCOA
authorDavid Reitter <david.reitter@gmail.com>
Sat, 23 Aug 2008 20:40:19 +0000 (20:40 +0000)
committerDavid Reitter <david.reitter@gmail.com>
Sat, 23 Aug 2008 20:40:19 +0000 (20:40 +0000)
(API not present in GNUStep).

src/nsterm.m

index b790ed4a6e217f722b80e0eead3bd05a0f402939..72c5c19477cbee6653f2019447891a761fc0478f 100644 (file)
@@ -2414,7 +2414,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
       drawGlyph = 1; // just draw the Glyph
       [FRAME_BACKGROUND_COLOR (f) set];
 
+#ifdef NS_IMPL_COCOA
       NSDisableScreenUpdates ();
+#endif
     }
   else
     { 
@@ -2429,7 +2431,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
          cursorType = HOLLOW_BOX_CURSOR;
        }
 
+#ifdef NS_IMPL_COCOA
       NSDisableScreenUpdates ();
+#endif
 
       switch (cursorType)
        {
@@ -2466,7 +2470,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
   if (drawGlyph)
     draw_phys_cursor_glyph (w, glyph_row, hl);
 
+#ifdef NS_IMPL_COCOA
   NSEnableScreenUpdates ();
+#endif
 
 }