aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnki_hn.c
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-26 03:46:01 +0000
committeryzrh <yzrh@noema.org>2022-12-28 19:29:46 +0000
commitabce2fd2e4f8089779fb9b1dce94133716b0bb39 (patch)
tree1bbc6005064a70201e2ea1860fc29b21b93a050a /src/cnki_hn.c
parent224a09a015de72f56ee86841504575fe474c6260 (diff)
downloadmelon-abce2fd2e4f8089779fb9b1dce94133716b0bb39.tar.gz
melon-abce2fd2e4f8089779fb9b1dce94133716b0bb39.tar.zst
Add preliminary support for HN figure placement.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/cnki_hn.c')
-rw-r--r--src/cnki_hn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cnki_hn.c b/src/cnki_hn.c
index 4d32092..c2f76ec 100644
--- a/src/cnki_hn.c
+++ b/src/cnki_hn.c
@@ -93,6 +93,10 @@ cnki_hn(cnki_t **param)
fread(&ptr->image_data[i].format, 4, 1, (*param)->fp_i);
fread(&ptr->image_data[i].address, 4, 1, (*param)->fp_i);
fread(&ptr->image_data[i].size, 4, 1, (*param)->fp_i);
+ ptr->image_data[i].x = 0;
+ ptr->image_data[i].y = 0;
+ ptr->image_data[i].w = 0;
+ ptr->image_data[i].h = 0;
fseek((*param)->fp_i,
ptr->image_data[i].address + ptr->image_data[i].size,
SEEK_SET);