summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-08-11 01:55:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-08-11 01:55:04 (GMT)
commitbd6c8e72b03112ac34f56fa3a812606903ca58c3 (patch)
tree12ad451d14a39830960984d16ac1b19a9591673b /generic/tkImgPhoto.c
parentc76b64e4b9353b355397f17e678900732550a513 (diff)
downloadtk-bd6c8e72b03112ac34f56fa3a812606903ca58c3.zip
tk-bd6c8e72b03112ac34f56fa3a812606903ca58c3.tar.gz
tk-bd6c8e72b03112ac34f56fa3a812606903ca58c3.tar.bz2
more errors found by the compiler
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 2cfe7ff..b56261d 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -17,7 +17,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPhoto.c,v 1.56 2005/08/10 22:02:22 dkf Exp $
+ * RCS: @(#) $Id: tkImgPhoto.c,v 1.57 2005/08/11 01:55:04 dgp Exp $
*/
#include "tkInt.h"
@@ -977,26 +977,24 @@ ImgPhotoCmd(clientData, interp, objc, objv)
data = ImgGetPhoto(masterPtr, &block, &options);
if (oldformat) {
- typedef (int (*oldStringWriterProc) (Tcl_Interp *interp,
- Tcl_DString *dataPtr, char *formatString,
- Tk_PhotoImageBlock *blockPtr));
Tcl_DString buffer;
Tcl_DStringInit(&buffer);
- result = ((oldStringWriterProc) stringWriteProc) (interp, &buffer,
- Tcl_GetString(options.format), &block);
+ result = ((int (*) (Tcl_Interp *interp,
+ Tcl_DString *dataPtr, char *formatString,
+ Tk_PhotoImageBlock *blockPtr)) stringWriteProc)
+ (interp, &buffer, Tcl_GetString(options.format), &block);
if (result == TCL_OK) {
Tcl_DStringResult(interp, &buffer);
} else {
Tcl_DStringFree(&buffer);
}
} else {
- typedef (int (*newStringWriterProc) (Tcl_Interp *interp,
- Tcl_Obj *formatString, Tk_PhotoImageBlock *blockPtr,
- VOID *dummy));
- result = ((newStringWriterProc) stringWriteProc) (interp,
- options.format, &block, (VOID *) NULL);
+ result = ((int (*) (Tcl_Interp *interp,
+ Tcl_Obj *formatString, Tk_PhotoImageBlock *blockPtr,
+ VOID *dummy)) stringWriteProc)
+ (interp, options.format, &block, (VOID *) NULL);
}
if (options.background) {
Tk_FreeColor(options.background);
@@ -4859,7 +4857,6 @@ Tk_PhotoPutZoomedBlock(interp, handle, blockPtr, x, y, width, height,
*/
if (alphaOffset) {
- int x1, y1, end;
if (compRule != TK_PHOTO_COMPOSITE_OVERLAY) {
/*
@@ -4879,7 +4876,7 @@ Tk_PhotoPutZoomedBlock(interp, handle, blockPtr, x, y, width, height,
TkDestroyRegion(workRgn);
}
- TkBuildRegionFromAlphaData(masterPtr->validRegion, x, y, width, height,
+ TkpBuildRegionFromAlphaData(masterPtr->validRegion, x, y, width, height,
&masterPtr->pix32[(y * masterPtr->width + x) * 4 + 3], 4,
masterPtr->width * 4);
} else {