Commit 11de9b60 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix a type and add some consts

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 1a34fb02
......@@ -663,7 +663,7 @@ render(ZathuraRenderRequest* request, ZathuraRenderer* renderer)
recolor(priv, page_width, page_height, surface);
}
emit_completed_signal_t* ecs = g_malloc(sizeof(ecs));
emit_completed_signal_t* ecs = g_malloc(sizeof(emit_completed_signal_t));
ecs->renderer = g_object_ref(renderer);
ecs->request = g_object_ref(request);
ecs->surface = cairo_surface_reference(surface);
......@@ -715,8 +715,8 @@ render_all(zathura_t* zathura)
zathura_page_t* page = zathura_document_get_page(zathura->document,
page_id);
unsigned int page_height = 0, page_width = 0;
double height = zathura_page_get_height(page);
double width = zathura_page_get_width(page);
const double height = zathura_page_get_height(page);
const double width = zathura_page_get_width(page);
page_calc_height_width(zathura->document, height, width, &page_height, &page_width, true);
GtkWidget* widget = zathura_page_get_widget(zathura, page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment