1.1 --- a/stage2/tasks/example.c Wed Jun 28 00:20:14 2017 +0200
1.2 +++ b/stage2/tasks/example.c Wed Jun 28 01:04:22 2017 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Example screen-updating task.
1.6 *
1.7 - * Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software: you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -24,7 +24,7 @@
1.13
1.14 extern vidinfo_t panel_info;
1.15
1.16 -void next_pixel(unsigned short *x, unsigned short *y)
1.17 +void next_pixel(uint16_t *x, uint16_t *y)
1.18 {
1.19 (*x)++;
1.20 if (*x >= panel_info.vl_col) {
1.21 @@ -37,7 +37,7 @@
1.22
1.23 /* Tasks. */
1.24
1.25 -void plot_pattern(unsigned short pixel_type, unsigned short x, unsigned short y)
1.26 +void plot_pattern(uint16_t pixel_type, uint16_t x, uint16_t y)
1.27 {
1.28 int i;
1.29
1.30 @@ -48,9 +48,9 @@
1.31 }
1.32 }
1.33
1.34 -void start_plot_pattern(unsigned short task)
1.35 +void start_plot_pattern(uint8_t task)
1.36 {
1.37 - u32 args[] = {task, 0, (task * (panel_info.vl_row / 4)) % panel_info.vl_row};
1.38 + uint32_t args[] = {task, 0, (task * (panel_info.vl_row / 4)) % panel_info.vl_row};
1.39
1.40 start_task(task, (void (*)()) plot_pattern, args, 3);
1.41 }