diff options
Diffstat (limited to 'apps/plugins/sdl/SDL_image/IMG_png.c')
-rw-r--r-- | apps/plugins/sdl/SDL_image/IMG_png.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/sdl/SDL_image/IMG_png.c b/apps/plugins/sdl/SDL_image/IMG_png.c index 93c7ee5dfd..394368f0ea 100644 --- a/apps/plugins/sdl/SDL_image/IMG_png.c +++ b/apps/plugins/sdl/SDL_image/IMG_png.c | |||
@@ -32,25 +32,25 @@ | |||
32 | 32 | ||
33 | /*============================================================================= | 33 | /*============================================================================= |
34 | File: SDL_png.c | 34 | File: SDL_png.c |
35 | Purpose: A PNG loader and saver for the SDL library | 35 | Purpose: A PNG loader and saver for the SDL library |
36 | Revision: | 36 | Revision: |
37 | Created by: Philippe Lavoie (2 November 1998) | 37 | Created by: Philippe Lavoie (2 November 1998) |
38 | lavoie@zeus.genie.uottawa.ca | 38 | lavoie@zeus.genie.uottawa.ca |
39 | Modified by: | 39 | Modified by: |
40 | 40 | ||
41 | Copyright notice: | 41 | Copyright notice: |
42 | Copyright (C) 1998 Philippe Lavoie | 42 | Copyright (C) 1998 Philippe Lavoie |
43 | 43 | ||
44 | This library is free software; you can redistribute it and/or | 44 | This library is free software; you can redistribute it and/or |
45 | modify it under the terms of the GNU Library General Public | 45 | modify it under the terms of the GNU Library General Public |
46 | License as published by the Free Software Foundation; either | 46 | License as published by the Free Software Foundation; either |
47 | version 2 of the License, or (at your option) any later version. | 47 | version 2 of the License, or (at your option) any later version. |
48 | 48 | ||
49 | This library is distributed in the hope that it will be useful, | 49 | This library is distributed in the hope that it will be useful, |
50 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 50 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
51 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 51 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
52 | Library General Public License for more details. | 52 | Library General Public License for more details. |
53 | 53 | ||
54 | You should have received a copy of the GNU Library General Public | 54 | You should have received a copy of the GNU Library General Public |
55 | License along with this library; if not, write to the Free | 55 | License along with this library; if not, write to the Free |
56 | Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 56 | Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
@@ -102,7 +102,7 @@ static struct { | |||
102 | } lib; | 102 | } lib; |
103 | 103 | ||
104 | #ifdef LOAD_PNG_DYNAMIC | 104 | #ifdef LOAD_PNG_DYNAMIC |
105 | int IMG_InitPNG() | 105 | int IMG_InitPNG(void) |
106 | { | 106 | { |
107 | if ( lib.loaded == 0 ) { | 107 | if ( lib.loaded == 0 ) { |
108 | lib.handle = SDL_LoadObject(LOAD_PNG_DYNAMIC); | 108 | lib.handle = SDL_LoadObject(LOAD_PNG_DYNAMIC); |
@@ -249,7 +249,7 @@ int IMG_InitPNG() | |||
249 | 249 | ||
250 | return 0; | 250 | return 0; |
251 | } | 251 | } |
252 | void IMG_QuitPNG() | 252 | void IMG_QuitPNG(void) |
253 | { | 253 | { |
254 | if ( lib.loaded == 0 ) { | 254 | if ( lib.loaded == 0 ) { |
255 | return; | 255 | return; |
@@ -260,7 +260,7 @@ void IMG_QuitPNG() | |||
260 | --lib.loaded; | 260 | --lib.loaded; |
261 | } | 261 | } |
262 | #else | 262 | #else |
263 | int IMG_InitPNG() | 263 | int IMG_InitPNG(void) |
264 | { | 264 | { |
265 | if ( lib.loaded == 0 ) { | 265 | if ( lib.loaded == 0 ) { |
266 | lib.png_create_info_struct = png_create_info_struct; | 266 | lib.png_create_info_struct = png_create_info_struct; |
@@ -289,7 +289,7 @@ int IMG_InitPNG() | |||
289 | 289 | ||
290 | return 0; | 290 | return 0; |
291 | } | 291 | } |
292 | void IMG_QuitPNG() | 292 | void IMG_QuitPNG(void) |
293 | { | 293 | { |
294 | if ( lib.loaded == 0 ) { | 294 | if ( lib.loaded == 0 ) { |
295 | return; | 295 | return; |
@@ -526,7 +526,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) | |||
526 | palette->colors[i].b = i; | 526 | palette->colors[i].b = i; |
527 | } | 527 | } |
528 | } else if (png_num_palette > 0 ) { | 528 | } else if (png_num_palette > 0 ) { |
529 | palette->ncolors = png_num_palette; | 529 | palette->ncolors = png_num_palette; |
530 | for( i=0; i<png_num_palette; ++i ) { | 530 | for( i=0; i<png_num_palette; ++i ) { |
531 | palette->colors[i].b = png_palette[i].blue; | 531 | palette->colors[i].b = png_palette[i].blue; |
532 | palette->colors[i].g = png_palette[i].green; | 532 | palette->colors[i].g = png_palette[i].green; |
@@ -552,18 +552,18 @@ done: /* Clean up and return */ | |||
552 | } | 552 | } |
553 | IMG_SetError(error); | 553 | IMG_SetError(error); |
554 | } | 554 | } |
555 | return(surface); | 555 | return(surface); |
556 | } | 556 | } |
557 | 557 | ||
558 | #else | 558 | #else |
559 | 559 | ||
560 | int IMG_InitPNG() | 560 | int IMG_InitPNG(void) |
561 | { | 561 | { |
562 | IMG_SetError("PNG images are not supported"); | 562 | IMG_SetError("PNG images are not supported"); |
563 | return(-1); | 563 | return(-1); |
564 | } | 564 | } |
565 | 565 | ||
566 | void IMG_QuitPNG() | 566 | void IMG_QuitPNG(void) |
567 | { | 567 | { |
568 | } | 568 | } |
569 | 569 | ||