mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 02:15:51 +01:00
Update render function
This commit is contained in:
parent
7dd5c0d567
commit
5151b84a6f
3 changed files with 3 additions and 3 deletions
|
@ -270,7 +270,7 @@ pdf_page_render(zathura_page_t* page)
|
|||
}
|
||||
|
||||
poppler_page_render_to_pixbuf(page->data, 0, 0, page_width, page_height,
|
||||
page->document->scale, 90, pixbuf);
|
||||
page->document->scale, 0, pixbuf);
|
||||
|
||||
/* create image buffer */
|
||||
zathura_image_buffer_t* image_buffer = zathura_image_buffer_create(page_width, page_height);
|
||||
|
|
3
render.c
3
render.c
|
@ -165,7 +165,8 @@ render(zathura_t* zathura, zathura_page_t* page)
|
|||
dst[0] = src[0];
|
||||
dst[1] = src[1];
|
||||
dst[2] = src[2];
|
||||
dst += 3;
|
||||
src += 3;
|
||||
dst += 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -321,7 +321,6 @@ page_view_set_mode(zathura_t* zathura, unsigned int pages_per_row)
|
|||
|
||||
GtkWidget* row = NULL;
|
||||
|
||||
/* create blank pages */
|
||||
for (unsigned int i = 0; i < zathura->document->number_of_pages; i++)
|
||||
{
|
||||
if (i % pages_per_row == 0) {
|
||||
|
|
Loading…
Reference in a new issue