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

« back to all changes in this revision

Viewing changes to test/blit.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2007-10-13 20:10:44 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071013201044-35yldy9w3xe7iy2j
Tags: 0.99.beta12.debian-3
* debian/control:
  + Build-depend on texlive instead of all the other texlive-* packages so
    that we have the proper fonts at build time (Closes: #445797).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4
4
 *                All Rights Reserved
5
5
 *
6
 
 *  $Id: blit.c 1062 2006-11-13 23:00:02Z sam $
 
6
 *  $Id: blit.c 1149 2007-09-30 13:32:16Z sam $
7
7
 *
8
 
 *  This program is free software; you can redistribute it and/or
9
 
 *  modify it under the terms of the Do What The Fuck You Want To
10
 
 *  Public License, Version 2, as published by Sam Hocevar. See
 
8
 *  This program is free software. It comes without any warranty, to
 
9
 *  the extent permitted by applicable law. You can redistribute it
 
10
 *  and/or modify it under the terms of the Do What The Fuck You Want
 
11
 *  To Public License, Version 2, as published by Sam Hocevar. See
11
12
 *  http://sam.zoy.org/wtfpl/COPYING for more details.
12
13
 */
13
14
 
42
43
    cucul_canvas_t *cv, *sprite;
43
44
    caca_display_t *dp;
44
45
 
45
 
    cv = cucul_create_canvas(0, 0);
 
46
    cv = cucul_create_canvas(80, 24);
 
47
    if(cv == NULL)
 
48
    {
 
49
        printf("Failed to create canvas\n");
 
50
        return 1;
 
51
    }
 
52
 
46
53
    dp = caca_create_display(cv);
 
54
    if(dp == NULL)
 
55
    {
 
56
        printf("Failed to create display\n");
 
57
        return 1;
 
58
    }
47
59
 
48
60
    sprite = cucul_create_canvas(0, 0);
49
61
    cucul_set_color_ansi(sprite, CUCUL_LIGHTRED, CUCUL_BLACK);