Font readjustiert (ein Pixel höher)
authorWintermate <wintermute@hannover.ccc.de>
Wed, 23 Oct 2013 20:27:24 +0000 (22:27 +0200)
committerWintermate <wintermute@hannover.ccc.de>
Wed, 23 Oct 2013 20:27:24 +0000 (22:27 +0200)
sprites/font.dat
sprites/fontdata.c

index bc9720e..bb19db6 100644 (file)
Binary files a/sprites/font.dat and b/sprites/font.dat differ
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.027951 seconds and 4 git commands to generate.