diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-27 11:04:51 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-31 10:18:33 +0200 |
commit | ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3 (patch) | |
tree | e16d2a838f4561d5538928a58f805e5f1373225a /meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch | |
parent | 6775acb048dabd624c5c8197b683aba45ed91569 (diff) | |
download | meta-openembedded-ec9e5ed06256ad92c818474cdb490dc0d3a0d0a3.tar.gz |
recipes: remove blacklisted recipes
* as PNBLACKLIST message says, these recipes are blacklisted for long
time and nobody showed any interest to fix them
* remove all unused .patch and .inc files as well
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch')
-rw-r--r-- | meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch b/meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch deleted file mode 100644 index 282bfb184..000000000 --- a/meta-gnome/recipes-apps/epdfview/epdfview/swap-colors.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | Imported from Debian 0.1.8-3 | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Index: trunk/src/PDFDocument.cxx | ||
6 | =================================================================== | ||
7 | --- trunk/src/PDFDocument.cxx (revision 361) | ||
8 | +++ trunk/src/PDFDocument.cxx (revision 367) | ||
9 | @@ -21,4 +21,5 @@ | ||
10 | #include <poppler.h> | ||
11 | #include <unistd.h> | ||
12 | +#include <algorithm> | ||
13 | #include "epdfview.h" | ||
14 | |||
15 | @@ -33,4 +34,22 @@ | ||
16 | static PageMode convertPageMode (gint pageMode); | ||
17 | static gchar *getAbsoluteFileName (const gchar *fileName); | ||
18 | + | ||
19 | +namespace | ||
20 | +{ | ||
21 | + void | ||
22 | + convert_bgra_to_rgba (guint8 *data, int width, int height) | ||
23 | + { | ||
24 | + using std::swap; | ||
25 | + | ||
26 | + for (int y = 0; y < height; y++) | ||
27 | + { | ||
28 | + for (int x = 0; x < width; x++) | ||
29 | + { | ||
30 | + swap(data[0], data[2]); | ||
31 | + data += 4; | ||
32 | + } | ||
33 | + } | ||
34 | + } | ||
35 | +} | ||
36 | |||
37 | /// | ||
38 | @@ -651,4 +670,5 @@ | ||
39 | cairo_destroy(context); | ||
40 | cairo_surface_destroy (surface); | ||
41 | + convert_bgra_to_rgba(renderedPage->getData (), width, height); | ||
42 | #else // !HAVE_POPPLER_0_17_0 | ||
43 | // Create the pixbuf from the data and render to it. | ||