bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit dee05c8c8ccabcfeaa57e808b354600303e33ab3
parent 903e4128b155cc48603b83246d89d4d3ed36198e
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  6 Feb 2020 22:34:15 +0100

Use uint32_t everywhere where it makes sense.

Diffstat:
Msrc/bdftosfd.c | 6+++---
Msrc/polygon.c | 2+-
Msrc/polygon.h | 2+-
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bdftosfd.c b/src/bdftosfd.c @@ -65,13 +65,13 @@ main(int argc, char *argv[]) char *value = NULL; - int32_t height = 0, width = 0; - int32_t ascent = 0, descent = 0; + uint32_t height = 0, width = 0; + uint32_t ascent = 0, descent = 0; int key; int32_t x = 0, y = 0; uint32_t mask = 0; - int32_t xlength = 64, ylength = 64; /* Default values for 8x16 fonts */ + uint32_t xlength = 64, ylength = 64; /* Default values for 8x16 fonts */ struct fontinfo font; memset(&font, 0, sizeof(struct fontinfo)); diff --git a/src/polygon.c b/src/polygon.c @@ -14,7 +14,7 @@ #include <stdio.h> void -polygon(uint32_t row, uint32_t mask, int32_t width, int32_t x, int32_t y, int32_t xlength, int32_t ylength) { +polygon(uint32_t row, uint32_t mask, uint32_t width, int32_t x, int32_t y, uint32_t xlength, uint32_t ylength) { for (size_t column = 0; column < width; column++) { if ((row & (mask >> column)) != 0) { x = column * xlength; diff --git a/src/polygon.h b/src/polygon.h @@ -13,6 +13,6 @@ #ifndef POLYGON_H #define POLYGON_H -void polygon(uint32_t, uint32_t, int32_t, int32_t, int32_t, int32_t, int32_t); +void polygon(uint32_t, uint32_t, uint32_t, int32_t, int32_t, uint32_t, uint32_t); #endif /* POLYGON_H */