git » fp-git.git » commit 24efb56

added bottom and left options to the output interface

author ecalot
2004-08-18 08:12:49 UTC
committer ecalot
2004-08-18 08:12:49 UTC
parent 685cbc39952784dc265a0c79d5be4b9ff1376edf

added bottom and left options to the output interface

FP/src/include/output.h +1 -1
FP/src/out/output.c +1 -1
FP/src/res/resources.c +1 -1

diff --git a/FP/src/include/output.h b/FP/src/include/output.h
index 965beea..7dc5803 100644
--- a/FP/src/include/output.h
+++ b/FP/src/include/output.h
@@ -62,7 +62,7 @@ void outputPlayMid(tMemory music); /* Starts the music reproduction and returns
 /* Graph */
 
  /* Graph: Primitives for resources module */
-void* outputLoadBitmap(const unsigned char* data, int size, const tPalette palette, int h,int w,int invert, int firstColorTransparent);
+void* outputLoadBitmap(const unsigned char* data, int size, const tPalette palette, int h,int w,int invert, int firstColorTransparent, int bottom, int left);
 	/* Returns an abstract object allocated in memory using the data information ti build it
 	* invert is 0 when no invertion is needed and non-zero when an inversion is performed
 	*/
diff --git a/FP/src/out/output.c b/FP/src/out/output.c
index 79bfdec..7048a03 100644
--- a/FP/src/out/output.c
+++ b/FP/src/out/output.c
@@ -80,7 +80,7 @@ void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel)
 void*
 outputLoadBitmap(const unsigned char* data, int size, 
 		const tPalette palette, int h, int w, int invert, 
-		int firstColorTransparent)
+		int firstColorTransparent, int bottom, int left)
 {
  /* Returns an abstract object allocated in memory using the data 
   * information ti build it invert is 0 when no invertion is needed and 
diff --git a/FP/src/res/resources.c b/FP/src/res/resources.c
index 21148a2..7639dcd 100644
--- a/FP/src/res/resources.c
+++ b/FP/src/res/resources.c
@@ -207,7 +207,7 @@ tData* resLoad(long id) {
 				printf("resLoad: Allocating an image framed %d by offsets d=%d,l=%d,r=%d\n",total,down,left,right);
 				result->pFrames[total]=(void*)outputLoadBitmap(
 					image.pix,image.widthInBytes*image.height,pal,image.height,image.width,
-					invert,1/*,down,invert?right:left*/
+					invert,1,down,invert?right:left
         );
 
 				/* free intermediate image data */