~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
  • Date: 2010-02-08 01:40:59 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100208014059-9q4av8pze8p7uw3i
Tags: 0.99.beta17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  event         event lister for libcaca
3
 
 *  Copyright (c) 2004 Sam Hocevar <sam@zoy.org>
 
3
 *  Copyright (c) 2004-2009 Sam Hocevar <sam@hocevar.net>
4
4
 *                All Rights Reserved
5
5
 *
6
 
 *  $Id$
7
 
 *
8
6
 *  This program is free software. It comes without any warranty, to
9
7
 *  the extent permitted by applicable law. You can redistribute it
10
8
 *  and/or modify it under the terms of the Do What The Fuck You Want
55
53
        if(!image)
56
54
        {
57
55
            image = caca_create_canvas(0, 0);
58
 
            if(caca_import_file(image, argv[file], "ansi") < 0)
 
56
            if(caca_import_canvas_from_file(image, argv[file], "ansi") < 0)
59
57
            {
60
58
                fprintf(stderr, "%s: invalid file `%s'.\n", argv[0], argv[1]);
61
59
                return 1;