Update render function

This commit is contained in:
Moritz Lipp 2011-04-19 16:03:42 +02:00
parent 7dd5c0d567
commit 5151b84a6f
3 changed files with 3 additions and 3 deletions

View file

@ -270,7 +270,7 @@ pdf_page_render(zathura_page_t* page)
} }
poppler_page_render_to_pixbuf(page->data, 0, 0, page_width, page_height, 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 */ /* create image buffer */
zathura_image_buffer_t* image_buffer = zathura_image_buffer_create(page_width, page_height); zathura_image_buffer_t* image_buffer = zathura_image_buffer_create(page_width, page_height);

View file

@ -165,7 +165,8 @@ render(zathura_t* zathura, zathura_page_t* page)
dst[0] = src[0]; dst[0] = src[0];
dst[1] = src[1]; dst[1] = src[1];
dst[2] = src[2]; dst[2] = src[2];
dst += 3; src += 3;
dst += 4;
} }
} }

View file

@ -321,7 +321,6 @@ page_view_set_mode(zathura_t* zathura, unsigned int pages_per_row)
GtkWidget* row = NULL; GtkWidget* row = NULL;
/* create blank pages */
for (unsigned int i = 0; i < zathura->document->number_of_pages; i++) for (unsigned int i = 0; i < zathura->document->number_of_pages; i++)
{ {
if (i % pages_per_row == 0) { if (i % pages_per_row == 0) {