summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-11-25 10:12:52 +0100
committerStefan Kangas <stefankangas@gmail.com>2022-11-25 10:18:11 +0100
commita7f8087d7fc995e41b4cd6143e5833e6e3a9dac4 (patch)
tree393af40e862bb91035310c83fff5b4c6b28c8890 /src/image.c
parentbf93e94060d2c2b99bc9a16fa69d811bb8a454c1 (diff)
downloademacs-a7f8087d7fc995e41b4cd6143e5833e6e3a9dac4.tar.gz
Remove unused parameter from image_create_pix_container
* src/image.c (image_create_pix_container): Remove unused frame parameter. Update callers.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index 600c32571e1..2436f78ac38 100644
--- a/src/image.c
+++ b/src/image.c
@@ -193,8 +193,8 @@ static void anim_prune_animation_cache (Lisp_Object);
#ifdef USE_CAIRO
static Emacs_Pix_Container
-image_create_pix_container (struct frame *f, unsigned int width,
- unsigned int height, unsigned int depth)
+image_create_pix_container (unsigned int width, unsigned int height,
+ unsigned int depth)
{
Emacs_Pix_Container pimg;
@@ -237,7 +237,7 @@ image_pix_container_create_from_bitmap_data (struct frame *f,
unsigned long fg,
unsigned long bg)
{
- Emacs_Pix_Container pimg = image_create_pix_container (f, width, height, 0);
+ Emacs_Pix_Container pimg = image_create_pix_container (width, height, 0);
int bytes_per_line = (width + (CHAR_BIT - 1)) / CHAR_BIT;
for (int y = 0; y < height; y++)
@@ -3342,7 +3342,7 @@ image_create_x_image_and_pixmap_1 (struct frame *f, int width, int height, int d
eassert (input_blocked_p ());
/* Allocate a pixmap of the same size. */
- *pixmap = image_create_pix_container (f, width, height, depth);
+ *pixmap = image_create_pix_container (width, height, depth);
if (*pixmap == NO_PIXMAP)
{
*pimg = NULL;