summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-25 22:15:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-25 22:15:55 (GMT)
commita565f3cefc837744929899b81369312a838c90d4 (patch)
tree0cc65a6a303207377cdc8411863e340cc50fe3ba /macosx/tkMacOSXImage.c
parentc2eaef98e73b309df7c2e262fc0c982a634d0f9d (diff)
downloadtk-a565f3cefc837744929899b81369312a838c90d4.zip
tk-a565f3cefc837744929899b81369312a838c90d4.tar.gz
tk-a565f3cefc837744929899b81369312a838c90d4.tar.bz2
Add XPutImage() to the X11 stub table on Aqua
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r--macosx/tkMacOSXImage.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index 36f1fc6..2e576a5 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -516,7 +516,7 @@ XCreateImage(
/*
*----------------------------------------------------------------------
*
- * TkPutImage --
+ * TkPutImage, XPutImage --
*
* Copies a rectangular subimage of an XImage into a drawable. Currently
* this is only called by TkImgPhotoDisplay, using a Window as the
@@ -532,9 +532,7 @@ XCreateImage(
*/
int
-TkPutImage(
- unsigned long *colors, /* Unused on Macintosh. */
- int ncolors, /* Unused on Macintosh. */
+XPutImage(
Display* display, /* Display. */
Drawable drawable, /* Drawable to place image on. */
GC gc, /* GC to use. */
@@ -591,6 +589,23 @@ TkPutImage(
TkMacOSXRestoreDrawingContext(&dc);
return Success;
}
+
+int
+TkPutImage(
+ unsigned long *colors, /* Array of pixel values used by this image.
+ * May be NULL. */
+ int ncolors, /* Number of colors used, or 0. */
+ Display *display,
+ Drawable d, /* Destination drawable. */
+ GC gc,
+ XImage *image, /* Source image. */
+ int src_x, int src_y, /* Offset of subimage. */
+ int dest_x, int dest_y, /* Position of subimage origin in drawable. */
+ unsigned int width, unsigned int height)
+ /* Dimensions of subimage. */
+{
+ return XPutImage(display, d, gc, image, src_x, src_y, dest_x, dest_y, width, height);
+}
/*
* Local Variables: