IMG_jpg.c
changeset 205 0aa18e250940
parent 204 dcb38b0e78a6
child 230 3766fc378624
     1.1 --- a/IMG_jpg.c	Sat Sep 26 08:54:15 2009 +0000
     1.2 +++ b/IMG_jpg.c	Sat Sep 26 09:09:53 2009 +0000
     1.3 @@ -53,7 +53,7 @@
     1.4  } lib;
     1.5  
     1.6  #ifdef LOAD_JPG_DYNAMIC
     1.7 -static int IMG_InitJPG()
     1.8 +int IMG_InitJPG()
     1.9  {
    1.10  	if ( lib.loaded == 0 ) {
    1.11  		lib.handle = SDL_LoadObject(LOAD_JPG_DYNAMIC);
    1.12 @@ -128,7 +128,7 @@
    1.13  
    1.14  	return 0;
    1.15  }
    1.16 -static void IMG_QuitJPG()
    1.17 +void IMG_QuitJPG()
    1.18  {
    1.19  	if ( lib.loaded == 0 ) {
    1.20  		return;
    1.21 @@ -139,7 +139,7 @@
    1.22  	--lib.loaded;
    1.23  }
    1.24  #else
    1.25 -static int IMG_InitJPG()
    1.26 +int IMG_InitJPG()
    1.27  {
    1.28  	if ( lib.loaded == 0 ) {
    1.29  		lib.jpeg_calc_output_dimensions = jpeg_calc_output_dimensions;
    1.30 @@ -156,7 +156,7 @@
    1.31  
    1.32  	return 0;
    1.33  }
    1.34 -static void IMG_QuitJPG()
    1.35 +void IMG_QuitJPG()
    1.36  {
    1.37  	if ( lib.loaded == 0 ) {
    1.38  		return;
    1.39 @@ -465,6 +465,16 @@
    1.40  
    1.41  #else
    1.42  
    1.43 +int IMG_InitJPG()
    1.44 +{
    1.45 +	IMG_SetError("JPEG images are not supported");
    1.46 +	return(-1);
    1.47 +}
    1.48 +
    1.49 +void IMG_QuitJPG()
    1.50 +{
    1.51 +}
    1.52 +
    1.53  /* See if an image is contained in a data source */
    1.54  int IMG_isJPG(SDL_RWops *src)
    1.55  {