~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to src/cacadraw.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2007-11-25 19:08:40 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071125190840-3r4k9nkxsyo7m3ck
Tags: 0.99.beta13b-1
* New upstream release.

* debian/control:
  + Do not build-depend on the whole texlive suite, but on more fine-grained
    packages. Thanks to Norbert Preining for the hints (latex -recorder, then
    inspect the .fls file).
* Ship libcaca++, libcucul++ and their development files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *  Copyright (c) 2004 Sam Hocevar <sam@zoy.org>
4
4
 *                All Rights Reserved
5
5
 *
6
 
 *  $Id: cacadraw.c 1103 2006-12-12 01:53:54Z sam $
 
6
 *  $Id$
7
7
 *
8
8
 *  This program is free software. It comes without any warranty, to
9
9
 *  the extent permitted by applicable law. You can redistribute it
80
80
 
81
81
        while(caca_get_event(dp, CACA_EVENT_ANY, &ev, -1))
82
82
        {
83
 
            switch(ev.type)
 
83
            switch(caca_get_event_type(&ev))
84
84
            {
85
85
                case CACA_EVENT_QUIT:
86
86
                    goto quit;
87
87
                case CACA_EVENT_KEY_PRESS:
88
 
                    switch(ev.data.key.ch)
 
88
                    switch(caca_get_event_key_ch(&ev))
89
89
                    {
90
90
                    case CACA_KEY_LEFT: dx -= 2; break;
91
91
                    case CACA_KEY_RIGHT: dx += 2; break;