changeset 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 e253867adde2
children 72a117daa289
files src/nsterm.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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
 
 }