Skip to content

Commit bb28724

Browse files
committed
Adds rotation to SDL driver
1 parent f02759a commit bb28724

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext_mod/lcd_bus/sdl_bus/sdl_bus.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@
130130
else dst = self->view1->items;
131131

132132
rotation_data_t data = {
133-
x_start=x_start,
134-
y_start=y_start,
135-
x_end=x_end,
136-
y_end=y_end,
137-
width=self->panel_io_config.width,
138-
height=self->panel_io_config.height,
139-
rotation=rotation,
140-
bytes_per_pixel=self->panel_io_config.bytes_per_pixel,
141-
last_update=1
133+
.x_start=x_start,
134+
.y_start=y_start,
135+
.x_end=x_end,
136+
.y_end=y_end,
137+
.width=self->panel_io_config.width,
138+
.height=self->panel_io_config.height,
139+
.rotation=rotation,
140+
.bytes_per_pixel=self->panel_io_config.bytes_per_pixel,
141+
.last_update=1
142142
}
143143
rotate(color, dst, &data);
144144
color = dst;

0 commit comments

Comments
 (0)