diff src/nsterm.m @ 97678:82049cd6b1d9

(ns_draw_window_cursor): .*ScreenUpdates() calls only if NS_IMPL_COCOA (API not present in GNUStep).
author David Reitter <david.reitter@gmail.com>
date Sat, 23 Aug 2008 20:40:19 +0000
parents d5535f9696b8
children 99a0b68bcc29
line wrap: on
line diff
--- a/src/nsterm.m	Sat Aug 23 20:01:16 2008 +0000
+++ b/src/nsterm.m	Sat Aug 23 20:40:19 2008 +0000
@@ -2414,7 +2414,9 @@
       drawGlyph = 1; // just draw the Glyph
       [FRAME_BACKGROUND_COLOR (f) set];
 
+#ifdef NS_IMPL_COCOA
       NSDisableScreenUpdates ();
+#endif
     }
   else
     { 
@@ -2429,7 +2431,9 @@
 	  cursorType = HOLLOW_BOX_CURSOR;
 	}
 
+#ifdef NS_IMPL_COCOA
       NSDisableScreenUpdates ();
+#endif
 
       switch (cursorType)
 	{
@@ -2466,7 +2470,9 @@
   if (drawGlyph)
     draw_phys_cursor_glyph (w, glyph_row, hl);
 
+#ifdef NS_IMPL_COCOA
   NSEnableScreenUpdates ();
+#endif
 
 }