Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
soburi committed Jan 10, 2024
1 parent 75edf49 commit 9b78a29
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/display/display_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ static int sdl_display_init(const struct device *dev)
sdl_display_zoom_pct = CONFIG_SDL_DISPLAY_ZOOM_PCT;
}

int rc = sdl_display_init_bottom(config->height, config->width,
sdl_display_zoom_pct, use_software_renderer,
&disp_data->window, &disp_data->renderer,
&disp_data->mutex, &disp_data->texture, &disp_data->read_texture);
int rc = sdl_display_init_bottom(config->height, config->width, sdl_display_zoom_pct,
use_software_renderer, &disp_data->window,
&disp_data->renderer, &disp_data->mutex,
&disp_data->texture, &disp_data->read_texture);

if (rc != 0) {
LOG_ERR("Failed to create SDL display");
Expand Down Expand Up @@ -390,8 +390,8 @@ static int sdl_display_read(const struct device *dev, const uint16_t x,
memset(disp_data->read_buf, 0, desc->pitch * desc->height * 4);

err = sdl_display_read_bottom(desc->height, desc->width, x, y, disp_data->renderer,
disp_data->read_buf, desc->pitch, disp_data->mutex, disp_data->texture,
disp_data->read_texture);
disp_data->read_buf, desc->pitch, disp_data->mutex,
disp_data->texture, disp_data->read_texture);

if (err) {
return err;
Expand Down Expand Up @@ -481,8 +481,8 @@ static int sdl_display_set_pixel_format(const struct device *dev,

static void sdl_display_cleanup(struct sdl_display_data *disp_data)
{
sdl_display_cleanup_bottom(&disp_data->window, &disp_data->renderer, &disp_data->mutex, &disp_data->texture,
&disp_data->read_texture);
sdl_display_cleanup_bottom(&disp_data->window, &disp_data->renderer, &disp_data->mutex,
&disp_data->texture, &disp_data->read_texture);
}

static const struct display_driver_api sdl_display_api = {
Expand Down

0 comments on commit 9b78a29

Please sign in to comment.