From abce2fd2e4f8089779fb9b1dce94133716b0bb39 Mon Sep 17 00:00:00 2001 From: yzrh Date: Mon, 26 Dec 2022 03:46:01 +0000 Subject: Add preliminary support for HN figure placement. Signed-off-by: yzrh --- src/cnki_hn.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cnki_hn.c') 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); -- cgit v1.2.3