From 870e0516460a8503a2f1078c821ee7191f3f350c Mon Sep 17 00:00:00 2001 From: David Reitter Date: Sat, 23 Aug 2008 20:40:19 +0000 Subject: [PATCH] (ns_draw_window_cursor): .*ScreenUpdates() calls only if NS_IMPL_COCOA (API not present in GNUStep). --- src/nsterm.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nsterm.m b/src/nsterm.m index b790ed4a6e2..72c5c19477c 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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 } -- 2.39.5