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

« back to all changes in this revision

Viewing changes to cxx/cxxtest.cpp

  • 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:
3
3
 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
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
64
62
        // Import buffer into a canvas
65
63
        pig = new Canvas();
66
64
        pig->setColorANSI(CACA_LIGHTMAGENTA, CACA_TRANSPARENT);
67
 
        pig->importMemory(pigstring, strlen(pigstring), "text");
 
65
        pig->importFromMemory(pigstring, strlen(pigstring), "text");
68
66
    }
69
67
    catch(int e) {
70
68
        cerr << "Error while importing image (" << e << ")" << endl;