From: David Reitter Date: Sat, 23 Aug 2008 20:40:19 +0000 (+0000) Subject: (ns_draw_window_cursor): .*ScreenUpdates() calls only if NS_IMPL_COCOA X-Git-Tag: emacs-pretest-23.0.90~3305 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=870e0516460a8503a2f1078c821ee7191f3f350c;p=emacs.git (ns_draw_window_cursor): .*ScreenUpdates() calls only if NS_IMPL_COCOA (API not present in GNUStep). --- 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 }