Font readjustiert (ein Pixel höher)
[hackover2013-badge-firmware.git] / sprites / fontdata.c
index 941d8c7..3d9f044 100644 (file)
@@ -1,3 +1,4 @@
+#include <stddef.h>
 #include <stdio.h>
 
 unsigned char const font5x8[] = {
@@ -229,7 +230,11 @@ unsigned char const font5x8[] = {
 
 int main(void) {
   FILE *fd = fopen("font.dat", "wb");
+  size_t i;
+
+  for(i = 0; i < sizeof(font5x8); ++i) {
+    fputc(font5x8[i] >> 1, fd);
+  }
 
-  fwrite(font5x8, 1, sizeof(font5x8), fd);
   fclose(fd);
 }
This page took 0.029198 seconds and 4 git commands to generate.