~ubuntu-branches/debian/sid/ncurses/sid-200908151540

« back to all changes in this revision

Viewing changes to ncurses/tinfo/use_screen.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-30 03:43:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081130034300-lw6qrujyjmv6e32x
Tags: 5.7+20081122-2
Adding patch from Samuel Thibault to ensure that aalib checks the
value returned by Gpm_GetEvent() and only proceeds if value == 1
(Closes: #506717).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include <curses.priv.h>
34
34
 
35
 
MODULE_ID("$Id: use_screen.c,v 1.7 2008/11/16 00:19:59 juergen Exp $")
 
35
MODULE_ID("$Id: use_screen.c,v 1.6 2008/06/07 19:16:56 tom Exp $")
36
36
 
37
37
NCURSES_EXPORT(int)
38
38
use_screen(SCREEN *screen, NCURSES_SCREEN_CB func, void *data)
47
47
     * recurred through this point, return an error if so.
48
48
     */
49
49
    _nc_lock_global(curses);
50
 
    save_SP = CURRENT_SCREEN;
 
50
    save_SP = SP;
51
51
    set_term(screen);
52
52
 
53
53
    code = func(screen, data);