Guest User

doc_background.patch

a guest
Sep 9th, 2023
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.91 KB | None | 0 0
  1. diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
  2. index 2fe0488..194ebf9 100644
  3. --- a/libdocument/ev-document-misc.c
  4. +++ b/libdocument/ev-document-misc.c
  5. @@ -482,8 +482,8 @@ ev_document_misc_invert_surface (cairo_surface_t *surface) {
  6.     cr = cairo_create (surface);
  7.  
  8.     /* white + DIFFERENCE -> invert */
  9. -   cairo_set_operator (cr, CAIRO_OPERATOR_DIFFERENCE);
  10. -   cairo_set_source_rgb (cr, 1., 1., 1.);
  11. +   cairo_set_operator (cr, CAIRO_OPERATOR_DARKEN);
  12. +   cairo_set_source_rgb (cr, 0.8, 0.9098, 0.8117647);
  13.     cairo_paint(cr);
  14.     cairo_destroy (cr);
  15.  }
  16. @@ -511,9 +511,9 @@ ev_document_misc_invert_pixbuf (GdkPixbuf *pixbuf)
  17.             /* Calculate pixel's offset into the data array. */
  18.             p = data + x * n_channels + y * rowstride;
  19.             /* Change the RGB values*/
  20. -           p[0] = 255 - p[0];
  21. -           p[1] = 255 - p[1];
  22. -           p[2] = 255 - p[2];
  23. +           p[0] = 204;
  24. +           p[1] = 232;
  25. +           p[2] = 207;
  26.         }
  27.     }
  28.  }
Add Comment
Please, Sign In to add comment