Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 6691ac5fcbac0e766d4410ae649a13957ae85289 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> |
| 3 | Date: Thu, 22 Oct 2015 16:27:52 +0200 |
| 4 | Subject: [PATCH 1/2] remove antialias functions - poppler has dropped them in |
| 5 | the API |
| 6 | MIME-Version: 1.0 |
| 7 | Content-Type: text/plain; charset=UTF-8 |
| 8 | Content-Transfer-Encoding: 8bit |
| 9 | |
| 10 | The functions removed were not used. |
| 11 | |
| 12 | Upstream-Status: pending |
| 13 | |
| 14 | Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com> |
| 15 | --- |
| 16 | src/lib/epdf_main.h | 45 ----------------------------------- |
| 17 | src/lib/mupdf/epdf_mupdf_main.c | 18 -------------- |
| 18 | src/lib/poppler/epdf_poppler_main.cpp | 21 ---------------- |
| 19 | 3 files changed, 84 deletions(-) |
| 20 | |
| 21 | diff --git a/src/lib/epdf_main.h b/src/lib/epdf_main.h |
| 22 | index 54a57ca..0a79bad 100644 |
| 23 | --- a/src/lib/epdf_main.h |
| 24 | +++ b/src/lib/epdf_main.h |
| 25 | @@ -29,49 +29,4 @@ EAPI int epdf_shutdown(); |
| 26 | */ |
| 27 | EAPI const char *epdf_backend_version_get (void); |
| 28 | |
| 29 | -/** |
| 30 | - * @brief Return the state of fonts antialiasing in Poppler |
| 31 | - * |
| 32 | - * @return EINA_TRUE if fonts antialiasing enabled, EINA_FALSE otherwise. |
| 33 | - * |
| 34 | - * Return EINA_TRUE if the state of fonts antialiasing is enabled in |
| 35 | - * Poppler, EINA_FALSE otherwise. |
| 36 | - * |
| 37 | - * @ingroup Epdf_Main |
| 38 | - */ |
| 39 | -EAPI Eina_Bool epdf_fonts_antialias_get (void); |
| 40 | - |
| 41 | -/** |
| 42 | - * @brief Sets fonts antialiasing mode in Poppler |
| 43 | - * |
| 44 | - * @param on EINA_TRUE to enable fonts antialiasing, EINA_FALSE to disable |
| 45 | - * |
| 46 | - * Set @p on to EINA_TRUE to enable fonts antialiasing in Poppler, |
| 47 | - * EINA_FALSE to disable it. |
| 48 | - */ |
| 49 | -EAPI void epdf_fonts_antialias_set (Eina_Bool on); |
| 50 | - |
| 51 | -/** |
| 52 | - * @brief Return the state of lines antialiasing in Poppler |
| 53 | - * |
| 54 | - * @return EINA_TRUE if lines antialiasing enabled, EINA_FALSE otherwise. |
| 55 | - * |
| 56 | - * Return EINA_TRUE if the state of lines antialiasing is enabled in |
| 57 | - * Poppler, EINA_FALSE otherwise. |
| 58 | - * |
| 59 | - * @ingroup Epdf_Main |
| 60 | - */ |
| 61 | -EAPI Eina_Bool epdf_lines_antialias_get (void); |
| 62 | - |
| 63 | -/** |
| 64 | - * @brief Sets lines antialiasing mode in Poppler |
| 65 | - * |
| 66 | - * @param on EINA_TRUE to enable lines antialiasing, EINA_FALSE to disable |
| 67 | - * |
| 68 | - * Set @p on to EINA_TRUE to enable lines antialiasing in Poppler, |
| 69 | - * EINA_FALSE to disable it. |
| 70 | - */ |
| 71 | -EAPI void epdf_lines_antialias_set (Eina_Bool on); |
| 72 | - |
| 73 | - |
| 74 | #endif /* __EPDF_MAIN_H__ */ |
| 75 | diff --git a/src/lib/mupdf/epdf_mupdf_main.c b/src/lib/mupdf/epdf_mupdf_main.c |
| 76 | index 17bb830..27c6de2 100644 |
| 77 | --- a/src/lib/mupdf/epdf_mupdf_main.c |
| 78 | +++ b/src/lib/mupdf/epdf_mupdf_main.c |
| 79 | @@ -37,21 +37,3 @@ epdf_backend_version_get (void) |
| 80 | { |
| 81 | return "0.5"; |
| 82 | } |
| 83 | - |
| 84 | -Eina_Bool epdf_fonts_antialias_get(void) |
| 85 | -{ |
| 86 | - return EINA_TRUE; |
| 87 | -} |
| 88 | - |
| 89 | -void epdf_fonts_antialias_set(Eina_Bool on) |
| 90 | -{ |
| 91 | -} |
| 92 | - |
| 93 | -Eina_Bool epdf_lines_antialias_get(void) |
| 94 | -{ |
| 95 | - return EINA_TRUE; |
| 96 | -} |
| 97 | - |
| 98 | -void epdf_lines_antialias_set(Eina_Bool on) |
| 99 | -{ |
| 100 | -} |
| 101 | diff --git a/src/lib/poppler/epdf_poppler_main.cpp b/src/lib/poppler/epdf_poppler_main.cpp |
| 102 | index 9841987..9efdbe8 100644 |
| 103 | --- a/src/lib/poppler/epdf_poppler_main.cpp |
| 104 | +++ b/src/lib/poppler/epdf_poppler_main.cpp |
| 105 | @@ -46,24 +46,3 @@ epdf_backend_version_get (void) |
| 106 | { |
| 107 | return POPPLER_VERSION; |
| 108 | } |
| 109 | - |
| 110 | -Eina_Bool epdf_fonts_antialias_get (void) |
| 111 | -{ |
| 112 | - return globalParams->getAntialias(); |
| 113 | -} |
| 114 | - |
| 115 | -void epdf_fonts_antialias_set (Eina_Bool on) |
| 116 | -{ |
| 117 | - /* Nice API */ |
| 118 | - globalParams->setAntialias((char*)(on ? "yes" : "no")); |
| 119 | -} |
| 120 | - |
| 121 | -Eina_Bool epdf_lines_antialias_get (void) |
| 122 | -{ |
| 123 | - return globalParams->getVectorAntialias(); |
| 124 | -} |
| 125 | - |
| 126 | -void epdf_lines_antialias_set (Eina_Bool on) |
| 127 | -{ |
| 128 | - globalParams->setVectorAntialias((char*)(on ? "yes" : "no")); |
| 129 | -} |
| 130 | -- |
| 131 | 2.1.0 |
| 132 | |