1.1 --- a/stage2/tasks/example.c Thu Jun 29 23:26:39 2017 +0200
1.2 +++ b/stage2/tasks/example.c Sat Jul 08 21:06:58 2017 +0200
1.3 @@ -27,10 +27,10 @@
1.4 void next_pixel(uint16_t *x, uint16_t *y)
1.5 {
1.6 (*x)++;
1.7 - if (*x >= panel_info.vl_col) {
1.8 + if (*x >= panel_info.jz_fb->w) {
1.9 *x = 0;
1.10 (*y)++;
1.11 - if (*y >= panel_info.vl_row)
1.12 + if (*y >= panel_info.jz_fb->h)
1.13 *y = 0;
1.14 }
1.15 }
1.16 @@ -50,7 +50,7 @@
1.17
1.18 void start_plot_pattern(uint8_t task)
1.19 {
1.20 - uint32_t args[] = {task, 0, (task * (panel_info.vl_row / 4)) % panel_info.vl_row};
1.21 + uint32_t args[] = {task, 0, (task * (panel_info.jz_fb->h / 4)) % panel_info.jz_fb->h};
1.22
1.23 start_task(task, (void (*)()) plot_pattern, args, 3);
1.24 }