ncurses 5.7 - patch 20090228
[ncurses.git] / ncurses / tinfo / use_screen.c
index 6c3b12fb92389a45632a2733a70cf1076123f9b5..3b3f7361d91699623e700f7dcb48905fc7c69e42 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: use_screen.c,v 1.6 2008/06/07 19:16:56 tom Exp $")
+MODULE_ID("$Id: use_screen.c,v 1.7 2008/11/16 00:19:59 juergen Exp $")
 
 NCURSES_EXPORT(int)
 use_screen(SCREEN *screen, NCURSES_SCREEN_CB func, void *data)
@@ -47,7 +47,7 @@ use_screen(SCREEN *screen, NCURSES_SCREEN_CB func, void *data)
      * recurred through this point, return an error if so.
      */
     _nc_lock_global(curses);
-    save_SP = SP;
+    save_SP = CURRENT_SCREEN;
     set_term(screen);
 
     code = func(screen, data);