diff --git a/ft/pdf-poppler/pdf.c b/ft/pdf-poppler/pdf.c index 6d50638..ac5eb07 100644 --- a/ft/pdf-poppler/pdf.c +++ b/ft/pdf-poppler/pdf.c @@ -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); diff --git a/render.c b/render.c index 45802df..66b3a40 100644 --- a/render.c +++ b/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; } } diff --git a/zathura.c b/zathura.c index ddd5540..a2e9055 100644 --- a/zathura.c +++ b/zathura.c @@ -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) {