0001-remove-antialias-functions-poppler-has-dropped-them-.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. The functions removed were not used.
  10. Upstream-Status: pending
  11. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
  12. ---
  13. src/lib/epdf_main.h | 45 -----------------------------------
  14. src/lib/mupdf/epdf_mupdf_main.c | 18 --------------
  15. src/lib/poppler/epdf_poppler_main.cpp | 21 ----------------
  16. 3 files changed, 84 deletions(-)
  17. diff --git a/src/lib/epdf_main.h b/src/lib/epdf_main.h
  18. index 54a57ca..0a79bad 100644
  19. --- a/src/lib/epdf_main.h
  20. +++ b/src/lib/epdf_main.h
  21. @@ -29,49 +29,4 @@ EAPI int epdf_shutdown();
  22. */
  23. EAPI const char *epdf_backend_version_get (void);
  24. -/**
  25. - * @brief Return the state of fonts antialiasing in Poppler
  26. - *
  27. - * @return EINA_TRUE if fonts antialiasing enabled, EINA_FALSE otherwise.
  28. - *
  29. - * Return EINA_TRUE if the state of fonts antialiasing is enabled in
  30. - * Poppler, EINA_FALSE otherwise.
  31. - *
  32. - * @ingroup Epdf_Main
  33. - */
  34. -EAPI Eina_Bool epdf_fonts_antialias_get (void);
  35. -
  36. -/**
  37. - * @brief Sets fonts antialiasing mode in Poppler
  38. - *
  39. - * @param on EINA_TRUE to enable fonts antialiasing, EINA_FALSE to disable
  40. - *
  41. - * Set @p on to EINA_TRUE to enable fonts antialiasing in Poppler,
  42. - * EINA_FALSE to disable it.
  43. - */
  44. -EAPI void epdf_fonts_antialias_set (Eina_Bool on);
  45. -
  46. -/**
  47. - * @brief Return the state of lines antialiasing in Poppler
  48. - *
  49. - * @return EINA_TRUE if lines antialiasing enabled, EINA_FALSE otherwise.
  50. - *
  51. - * Return EINA_TRUE if the state of lines antialiasing is enabled in
  52. - * Poppler, EINA_FALSE otherwise.
  53. - *
  54. - * @ingroup Epdf_Main
  55. - */
  56. -EAPI Eina_Bool epdf_lines_antialias_get (void);
  57. -
  58. -/**
  59. - * @brief Sets lines antialiasing mode in Poppler
  60. - *
  61. - * @param on EINA_TRUE to enable lines antialiasing, EINA_FALSE to disable
  62. - *
  63. - * Set @p on to EINA_TRUE to enable lines antialiasing in Poppler,
  64. - * EINA_FALSE to disable it.
  65. - */
  66. -EAPI void epdf_lines_antialias_set (Eina_Bool on);
  67. -
  68. -
  69. #endif /* __EPDF_MAIN_H__ */
  70. diff --git a/src/lib/mupdf/epdf_mupdf_main.c b/src/lib/mupdf/epdf_mupdf_main.c
  71. index 17bb830..27c6de2 100644
  72. --- a/src/lib/mupdf/epdf_mupdf_main.c
  73. +++ b/src/lib/mupdf/epdf_mupdf_main.c
  74. @@ -37,21 +37,3 @@ epdf_backend_version_get (void)
  75. {
  76. return "0.5";
  77. }
  78. -
  79. -Eina_Bool epdf_fonts_antialias_get(void)
  80. -{
  81. - return EINA_TRUE;
  82. -}
  83. -
  84. -void epdf_fonts_antialias_set(Eina_Bool on)
  85. -{
  86. -}
  87. -
  88. -Eina_Bool epdf_lines_antialias_get(void)
  89. -{
  90. - return EINA_TRUE;
  91. -}
  92. -
  93. -void epdf_lines_antialias_set(Eina_Bool on)
  94. -{
  95. -}
  96. diff --git a/src/lib/poppler/epdf_poppler_main.cpp b/src/lib/poppler/epdf_poppler_main.cpp
  97. index 9841987..9efdbe8 100644
  98. --- a/src/lib/poppler/epdf_poppler_main.cpp
  99. +++ b/src/lib/poppler/epdf_poppler_main.cpp
  100. @@ -46,24 +46,3 @@ epdf_backend_version_get (void)
  101. {
  102. return POPPLER_VERSION;
  103. }
  104. -
  105. -Eina_Bool epdf_fonts_antialias_get (void)
  106. -{
  107. - return globalParams->getAntialias();
  108. -}
  109. -
  110. -void epdf_fonts_antialias_set (Eina_Bool on)
  111. -{
  112. - /* Nice API */
  113. - globalParams->setAntialias((char*)(on ? "yes" : "no"));
  114. -}
  115. -
  116. -Eina_Bool epdf_lines_antialias_get (void)
  117. -{
  118. - return globalParams->getVectorAntialias();
  119. -}
  120. -
  121. -void epdf_lines_antialias_set (Eina_Bool on)
  122. -{
  123. - globalParams->setVectorAntialias((char*)(on ? "yes" : "no"));
  124. -}
  125. --
  126. 2.1.0