[evince] How to change the font color in evince



I am using debian 6.0 and the version of evince's source code is 2.30.3.

I modified the evince's source code in order to change the behavior of "Inverted Colors". When I select the "Inverted Colors", the background color will turn to light green instead of simply being inverted:

  libdocument/ev-document-misc.c:
 
     300 void
     301 ev_document_misc_invert_surface (cairo_surface_t *surface) {
           ......
     323         for (y = 0; y < height; y++) {
     324                 guchar *p = data + y * rowstride;
     325
     326                 for (x = 0; x < width; x++) {
     327                         //p[0] = 255 - p[0];
     328                         //p[1] = 255 - p[1];
     329                         //p[2] = 255 - p[2];
     330                         // this will turn the background color to light green
     331                         p[0] = 204; // cc
     332                         p[1] = 232; // e8
     333                         p[2] = 207; // cf
     334                         p += 4;
     335                 }
     336         }

I didn't change the font color, but actually it turned white. I wonder whether there is a way to change the font color back? Sorry for my poor knowledge about cairo and gtk. Thanks.

Best regards,
Guoyu



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]