~ubuntu-branches/ubuntu/karmic/sdl-image1.2/karmic

« back to all changes in this revision

Viewing changes to IMG_xpm.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2005-02-23 10:44:58 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050223104458-2zcmjsl6rd8ad9uw
Tags: 1.2.4-1
* New upstream release
* debian/copyright: Fixed header for license text (Closes: #290199)
* Updated config.guess and config.sub (Closes: #267493)
* debian/rules: Use dh_installman instead of dh_installmanpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    SDL_image:  An example image loading library for use with SDL
3
 
    Copyright (C) 1999, 2000, 2001  Sam Lantinga
 
3
    Copyright (C) 1999-2004 Sam Lantinga
4
4
 
5
5
    This library is free software; you can redistribute it and/or
6
6
    modify it under the terms of the GNU Library General Public
20
20
    slouken@libsdl.org
21
21
*/
22
22
 
23
 
/* $Id: IMG_xpm.c,v 1.8 2001/12/14 13:02:16 slouken Exp $ */
 
23
/* $Id: IMG_xpm.c,v 1.10 2004/01/04 22:04:38 slouken Exp $ */
24
24
 
25
25
/*
26
26
 * XPM (X PixMap) image loader:
456
456
/* Load a XPM type image from an RWops datasource */
457
457
SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src)
458
458
{
 
459
        if ( !src ) {
 
460
                /* The error message has been set in SDL_RWFromFile */
 
461
                return NULL;
 
462
        }
459
463
        return load_xpm(NULL, src);
460
464
}
461
465