fix incorrect font handling
[hackover2013-badge-firmware.git] / drivers / displays / bitmap / sharpmem / sharpmem.c
index 43e4821..9a81667 100644 (file)
@@ -153,7 +153,7 @@ static void sharpmemDrawChar(uint16_t x, uint16_t y, const char c, struct FONT_D
     // Retrieve appropriate columns from font data
     for (col = 0; col < font.u8Width; col++)
     {
-      column[col] = font.au8FontTable[((c - 32) * font.u8Width) + col];    // Get first column of appropriate character
+      column[col] = font.au8FontTable[((c - font.u8FirstChar) * font.u8Width) + col];    // Get first column of appropriate character
     }
   }
   else
This page took 0.021266 seconds and 4 git commands to generate.