1.1 --- a/stage2/lcd.c Sun Apr 24 17:06:08 2016 +0200
1.2 +++ b/stage2/lcd.c Sun Apr 24 18:05:41 2016 +0200
1.3 @@ -70,8 +70,8 @@
1.4
1.5 static void get_colour(unsigned short h, unsigned short v, u8 rgb[], unsigned short pixel_type)
1.6 {
1.7 - unsigned short v_max = panel_info.vl_row;
1.8 - unsigned short h_max = panel_info.vl_col;
1.9 + unsigned short v_max = panel_info.vl_row - 1;
1.10 + unsigned short h_max = panel_info.vl_col - 1;
1.11
1.12 rgb[(pixel_type - 1) % 3] = div(h, h_max, 255);
1.13 rgb[pixel_type % 3] = div(v, v_max, 255);