From 32fe71a9227ec7aa720e47b4f6426924cf93215a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 30 Dec 2016 21:30:24 -0700 Subject: [PATCH] Revert change that incorrectly overshifts char data --- drivers/vesad/src/display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vesad/src/display.rs b/drivers/vesad/src/display.rs index e9f29b5..829d6ba 100644 --- a/drivers/vesad/src/display.rs +++ b/drivers/vesad/src/display.rs @@ -136,7 +136,7 @@ impl Display { for row in 0..16 { let row_data = FONT[font_i + row]; for col in 0..8 { - if (row_data >> (8 - col)) & 1 == 1 { + if (row_data >> (7 - col)) & 1 == 1 { unsafe { *((dst + col * 4) as *mut u32) = color; } } }