From c0871399d8c8b4da9bbe19c8478a3add77282eed Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 5 Aug 2024 11:37:47 +0200 Subject: [PATCH] libplatsch: align draw_buffer with platsch_custom_draw_buffer Rename the function to platsch_draw_buffer and align the function params to make it identical to the platsch_custom_draw_buffer function. Signed-off-by: Marco Felsch --- libplatsch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libplatsch.c b/libplatsch.c index 7a1fe6c..b3bb69e 100644 --- a/libplatsch.c +++ b/libplatsch.c @@ -105,8 +105,10 @@ static ssize_t readfull(int fd, void *buf, size_t count) return ret; } -static void draw_buffer(struct modeset_dev *dev, const char *dir, const char *base) +static void platsch_draw_buffer(struct platsch_ctx *ctx, struct modeset_dev *dev) { + const char *base = ctx->base; + const char *dir = ctx->dir; int fd_src; char *filename; ssize_t size; @@ -146,8 +148,6 @@ static void draw_buffer(struct modeset_dev *dev, const char *dir, const char *ba out: free(filename); - - return; } static void platsch_custom_draw_buffer(struct platsch_ctx *ctx, @@ -663,7 +663,7 @@ void platsch_draw(struct platsch_ctx *ctx) if (ctx->custom_draw_buffer_cb) platsch_custom_draw_buffer(ctx, iter); else - draw_buffer(iter, ctx->dir, ctx->base); + platsch_draw_buffer(ctx, iter); if (iter->setmode) { debug("set crtc\n");