summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2021-05-04 13:17:24 (GMT)
committerculler <culler>2021-05-04 13:17:24 (GMT)
commit4cadebd56f7bcc6f9ff195dbe9b4ba3e7c51465c (patch)
tree55357531d718cbc01bf3523db13fcc581bb04276 /macosx
parent7a9c0786c7e7180f520267d66dc8330412e1228d (diff)
downloadtk-4cadebd56f7bcc6f9ff195dbe9b4ba3e7c51465c.zip
tk-4cadebd56f7bcc6f9ff195dbe9b4ba3e7c51465c.tar.gz
tk-4cadebd56f7bcc6f9ff195dbe9b4ba3e7c51465c.tar.bz2
Use TCL_UNUSED in TkpPutRGBAImage.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXImage.c49
1 files changed, 37 insertions, 12 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index 092b589..1966414 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -528,25 +528,51 @@ TkMacOSXPutImage(
return Success;
}
-int XPutImage(Display* display, Drawable drawable, GC gc, XImage* image,
- int src_x, int src_y, int dest_x, int dest_y,
- unsigned int width, unsigned int height) {
+int XPutImage(
+ Display* display,
+ Drawable drawable,
+ GC gc,
+ XImage* image,
+ int src_x,
+ int src_y,
+ int dest_x,
+ int dest_y,
+ unsigned int width,
+ unsigned int height) {
return TkMacOSXPutImage(IGNORE_ALPHA, display, drawable, gc, image,
src_x, src_y, dest_x, dest_y, width, height);
}
-int TkPutImage(unsigned long *colors, int ncolors, Display* display,
- Drawable drawable, GC gc, XImage* image,
- int src_x, int src_y, int dest_x, int dest_y,
- unsigned int width, unsigned int height) {
+int TkPutImage(
+ TCL_UNUSED(unsigned long *),
+ TCL_UNUSED(int),
+ Display* display,
+ Drawable drawable,
+ GC gc,
+ XImage* image,
+ int src_x,
+ int src_y,
+ int dest_x,
+ int dest_y,
+ unsigned int width,
+ unsigned int height) {
return TkMacOSXPutImage(IGNORE_ALPHA, display, drawable, gc, image,
src_x, src_y, dest_x, dest_y, width, height);
}
-int TkpPutRGBAImage(unsigned long *colors, int ncolors, Display* display,
- Drawable drawable, GC gc, XImage* image,
- int src_x, int src_y, int dest_x, int dest_y,
- unsigned int width, unsigned int height) {
+int TkpPutRGBAImage(
+ TCL_UNUSED(unsigned long *),
+ TCL_UNUSED(int),
+ Display* display,
+ Drawable drawable,
+ GC gc,
+ XImage* image,
+ int src_x,
+ int src_y,
+ int dest_x,
+ int dest_y,
+ unsigned int width,
+ unsigned int height) {
return TkMacOSXPutImage(USE_ALPHA, display, drawable, gc, image,
src_x, src_y, dest_x, dest_y, width, height);
}
@@ -717,7 +743,6 @@ XGetImage(
NSUInteger bitmap_fmt = 0;
XImage* imagePtr = NULL;
char *bitmap = NULL;
- char R, G, B, A;
int depth = 32, offset = 0, bitmap_pad = 0;
unsigned int bytes_per_row, size, row, n, m;