Advertisement
ava1ar

Change background color in mupdf from gray to black

Nov 12th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.93 KB | None | 0 0
  1. --- a/platform/x11/x11_main.c   2019-11-12 01:50:05.059480869 -0500
  2. +++ b/platform/x11/x11_main.c   2019-11-12 01:50:38.405480869 -0500
  3. @@ -226,9 +226,9 @@
  4.         xcwait = XCreateFontCursor(xdpy, XC_watch);
  5.         xccaret = XCreateFontCursor(xdpy, XC_xterm);
  6.  
  7. -       xbgcolor.red = 0x7000;
  8. -       xbgcolor.green = 0x7000;
  9. -       xbgcolor.blue = 0x7000;
  10. +       xbgcolor.red = 0x0000;
  11. +       xbgcolor.green = 0x0000;
  12. +       xbgcolor.blue = 0x0000;
  13.  
  14.         XAllocColor(xdpy, DefaultColormap(xdpy, xscr), &xbgcolor);
  15.  
  16. --- a/platform/gl/gl-main.c     2019-11-12 02:10:39.582480869 -0500
  17. +++ b/platform/gl/gl-main.c     2019-11-12 02:10:56.281480869 -0500
  18. @@ -1593,10 +1593,7 @@
  19.  
  20.  void run_main_loop(void)
  21.  {
  22. -       if (currentinvert)
  23. -               glClearColor(0, 0, 0, 1);
  24. -       else
  25. -               glClearColor(0.3f, 0.3f, 0.3f, 1);
  26. +       glClearColor(0, 0, 0, 1);
  27.         ui_begin();
  28.         fz_try(ctx)
  29.         {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement