Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
- index 2fe0488..194ebf9 100644
- --- a/libdocument/ev-document-misc.c
- +++ b/libdocument/ev-document-misc.c
- @@ -482,8 +482,8 @@ ev_document_misc_invert_surface (cairo_surface_t *surface) {
- cr = cairo_create (surface);
- /* white + DIFFERENCE -> invert */
- - cairo_set_operator (cr, CAIRO_OPERATOR_DIFFERENCE);
- - cairo_set_source_rgb (cr, 1., 1., 1.);
- + cairo_set_operator (cr, CAIRO_OPERATOR_DARKEN);
- + cairo_set_source_rgb (cr, 0.8, 0.9098, 0.8117647);
- cairo_paint(cr);
- cairo_destroy (cr);
- }
- @@ -511,9 +511,9 @@ ev_document_misc_invert_pixbuf (GdkPixbuf *pixbuf)
- /* Calculate pixel's offset into the data array. */
- p = data + x * n_channels + y * rowstride;
- /* Change the RGB values*/
- - p[0] = 255 - p[0];
- - p[1] = 255 - p[1];
- - p[2] = 255 - p[2];
- + p[0] = 204;
- + p[1] = 232;
- + p[2] = 207;
- }
- }
- }
Add Comment
Please, Sign In to add comment