Skip to content

Commit a3a67d4

Browse files
committed
fix scale
1 parent 49a5277 commit a3a67d4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/HTMLRenderer/general.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
156156

157157
html_fout
158158
<< "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:"
159-
<< (pageWidth * scale_factor2) << "px;height:"
160-
<< (pageHeight * scale_factor2) << "px;\">"
161-
<< "<div id=\"b" << pageNum << "\" class=\"b\" style=\"width:"
159+
<< (pageWidth) << "px;height:"
160+
<< (pageHeight) << "px;\">"
161+
<< "<div class=\"b\" style=\"width:"
162162
<< pageWidth << "px;height:"
163163
<< pageHeight << "px;";
164164

src/HTMLRenderer/state.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
146146
double new_draw_ctm[6];
147147
memcpy(new_draw_ctm, cur_ctm, sizeof(new_draw_ctm));
148148

149-
double new_draw_scale = scale_factor2 * sqrt(new_draw_ctm[2] * new_draw_ctm[2] + new_draw_ctm[3] * new_draw_ctm[3]);
149+
double new_draw_scale = 1.0/scale_factor2 * sqrt(new_draw_ctm[2] * new_draw_ctm[2] + new_draw_ctm[3] * new_draw_ctm[3]);
150150

151151
double new_draw_font_size = cur_font_size;
152152
if(_is_positive(new_draw_scale))

0 commit comments

Comments
 (0)