Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table border and image zoom #35

Merged
merged 2 commits into from
Apr 6, 2016
Merged

Conversation

frankyifei
Copy link
Contributor

  1. support table borders , border-collapse(simple) and border-spacing.
  2. support image's height and width properties, in px or %. Disabled auto
    zoom in of low resolution images. Now it only zoom out large images to
    fit the screen.

1. support table borders , border-collapse(simple) and border-spacing.
2. support image's height and width properties, in px or %. Disabled
zoomin of low resolution images. Now it only zoom out large images to
fit the screen.
@houqp houqp merged commit d8100ed into koreader:master Apr 6, 2016
}
} else {
if ( zoomIn ) {
if ( m_pbuffer->img_zoom_in_mode_block==0 )
return; // no zoom
arbitraryImageScaling = m_pbuffer->img_zoom_in_mode_block == 2;
maxScale = m_pbuffer->img_zoom_in_scale_block;
//maxScale = m_pbuffer->img_zoom_in_scale_block;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frankyifei , the change on this line causes segfault in readersearch's unit test. Do you know why? Looks like there is some kind of memory corruption in CVRendBlockCache. The segfault is coming from this function call: https://github.com/koreader/crengine/blob/master/crengine/src/lvtinydom.cpp#L5101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants