improved embedded_linux example

This commit is contained in:
Chris
2018-05-26 17:28:58 +02:00
parent 89259d3c78
commit 2272ef80ee
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -131,6 +131,7 @@ impl Graphics {
// }
// }
//bresenham algorithm for lines
/// draw line
pub fn draw_line(&self, buffer: &mut[u8], x0: u16, y0: u16, x1: u16, y1: u16, color: &Color) {
let mut x0 = x0 as i16;
let x1 = x1 as i16;