poppler: remove enum name
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 15 Jun 2016 13:44:13 +0000 (15:44 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 15 Jun 2016 13:46:00 +0000 (15:46 +0200)
otherwise errors like T3896 will happen.

This fixes T3896.

src/generic/evas/pdf/main.cpp

index 426e97c..85edf49 100644 (file)
@@ -71,8 +71,8 @@ Eina_Bool poppler_init(const char *file, int page_nbr, int size_w, int size_h)
    if (!doc_page)
      goto del_pdfdoc;
 
-   w = doc_page->page_rect(page_box_enum::media_box).width();
-   h = doc_page->page_rect(page_box_enum::media_box).height();
+   w = doc_page->page_rect(media_box).width();
+   h = doc_page->page_rect(media_box).height();
    cw = doc_page->page_rect().width();
    ch = doc_page->page_rect().height();
 
@@ -133,8 +133,8 @@ void poppler_load_image(int size_w EINA_UNUSED, int size_h EINA_UNUSED)
 
    renderer = new page_renderer();
 
-   renderer->set_render_hint(page_renderer::render_hint::text_antialiasing, 1);
-   renderer->set_render_hint(page_renderer::render_hint::antialiasing, 1);
+   renderer->set_render_hint(page_renderer::text_antialiasing, 1);
+   renderer->set_render_hint(page_renderer::antialiasing, 1);
 
    out = renderer->render_page(doc_page, dpi, dpi,
                                0, 0, width, height,