summaryrefslogtreecommitdiff
path: root/fonts.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-26 11:01:27 +0200
committerErich Eckner <git@eckner.net>2018-10-26 11:01:27 +0200
commit2be45d6c729a12213ef690aab3a21ec7be60bed2 (patch)
tree5813be548e516503538a59018ba8bfb4cf167e43 /fonts.c
parent3470a4ce3a16f51d17127a202bf798d71544ffae (diff)
downloadanzeige-2be45d6c729a12213ef690aab3a21ec7be60bed2.tar.xz
fonts.c: style
Diffstat (limited to 'fonts.c')
-rw-r--r--fonts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fonts.c b/fonts.c
index b7a68c7..2ef8052 100644
--- a/fonts.c
+++ b/fonts.c
@@ -2,7 +2,8 @@
#include "fonts.h"
-int render(char *input, int input_len, char *output, int max_output_len, int skip_unprintables) {
+int render(char *input, int input_len, char *output, int max_output_len, int skip_unprintables)
+{
memset(output, 0, max_output_len);
int output_i = 0;
for (int input_i=0; (input_i < input_len) && (output_i*(SYMBOL_WIDTH+1) < max_output_len) && input[input_i]; input_i++) {