Skip to content

Commit

Permalink
libplatsch: align draw_buffer with platsch_custom_draw_buffer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Marco Felsch committed Aug 5, 2024
1 parent 9b69add commit c087139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libplatsch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c087139

Please sign in to comment.