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

« back to all changes in this revision

Viewing changes to IMG_pnm.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_pnm.c,v 1.2 2001/12/14 13:02:16 slouken Exp $ */
 
23
/* $Id: IMG_pnm.c,v 1.5 2004/01/04 22:04:38 slouken Exp $ */
24
24
 
25
25
/*
26
26
 * PNM (portable anymap) image loader:
108
108
 
109
109
#define ERROR(s) do { error = (s); goto done; } while(0)
110
110
 
111
 
        if(!src)
 
111
        if ( !src ) {
 
112
                /* The error message has been set in SDL_RWFromFile */
112
113
                return NULL;
 
114
        }
113
115
 
114
116
        SDL_RWread(src, magic, 2, 1);
115
117
        kind = magic[1] - '1';