Revert change that incorrectly overshifts char data

This commit is contained in:
Jeremy Soller 2016-12-30 21:30:24 -07:00
parent d37cb33af6
commit 32fe71a922

View file

@ -136,7 +136,7 @@ impl Display {
for row in 0..16 { for row in 0..16 {
let row_data = FONT[font_i + row]; let row_data = FONT[font_i + row];
for col in 0..8 { 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; } unsafe { *((dst + col * 4) as *mut u32) = color; }
} }
} }