diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-31 17:26:22 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-31 17:26:22 +0000 |
commit | 985ae73758477aaa08fcf55ce99090f591772764 (patch) | |
tree | 650965a97c5e0eba898accf5ab6934ad62702f7a /tools | |
parent | 68de2581ba68282bbda9c63bc209c43252f1336c (diff) | |
download | rockbox-985ae73758477aaa08fcf55ce99090f591772764.tar.gz rockbox-985ae73758477aaa08fcf55ce99090f591772764.zip |
Moved the declaration of the ofr variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r-- | tools/convbdf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c index 002fb6f513..ace2e1bd62 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c | |||
@@ -1016,6 +1016,9 @@ int gen_fnt_file(struct font* pf, char *path) | |||
1016 | FILE *ofp; | 1016 | FILE *ofp; |
1017 | int i; | 1017 | int i; |
1018 | int did_defaultchar = 0; | 1018 | int did_defaultchar = 0; |
1019 | #ifdef ROTATE | ||
1020 | int ofr = 0; | ||
1021 | #endif | ||
1019 | 1022 | ||
1020 | ofp = fopen(path, "wb"); | 1023 | ofp = fopen(path, "wb"); |
1021 | if (!ofp) { | 1024 | if (!ofp) { |
@@ -1047,7 +1050,6 @@ int gen_fnt_file(struct font* pf, char *path) | |||
1047 | writelong(ofp, pf->width? pf->size: 0); /* # bytes of width*/ | 1050 | writelong(ofp, pf->width? pf->size: 0); /* # bytes of width*/ |
1048 | /* variable font data*/ | 1051 | /* variable font data*/ |
1049 | #ifdef ROTATE | 1052 | #ifdef ROTATE |
1050 | int ofr = 0; | ||
1051 | for (i=0; i<pf->size; ++i) | 1053 | for (i=0; i<pf->size; ++i) |
1052 | { | 1054 | { |
1053 | bitmap_t* bits = pf->bits + (pf->offset? pf->offset[i]: (pf->height * i)); | 1055 | bitmap_t* bits = pf->bits + (pf->offset? pf->offset[i]: (pf->height * i)); |