aboutsummaryrefslogtreecommitdiff
path: root/convimg.c
diff options
context:
space:
mode:
Diffstat (limited to 'convimg.c')
-rw-r--r--convimg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/convimg.c b/convimg.c
index 631a8b1..6de5086 100644
--- a/convimg.c
+++ b/convimg.c
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <string.h>
+#include "convcom.c"
+
typedef struct {
unsigned char r, g, b, a;
} Colour;
@@ -89,6 +91,7 @@ int main(int argc, char** argv) {
fwrite(&bmp_w, 1, 2, outfile);
fwrite(&bmp_h, 1, 2, outfile);
fwrite(bitmap, 1, bs, outfile);
+ pad_file(4 + bs, outfile);
free(buffer);
end: