This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 3fd4347cfa2f022b4d362b1f4edec1f0db13aab3
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu Sep 21 06:45:25 2023 +0200

    imlib2_grab, imlib2_view: Unset context colormap
    
    Should normally not be set when grabbing.
---
 src/bin/imlib2_grab.c | 1 +
 src/bin/imlib2_view.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/bin/imlib2_grab.c b/src/bin/imlib2_grab.c
index 28b3cee..356c7dc 100644
--- a/src/bin/imlib2_grab.c
+++ b/src/bin/imlib2_grab.c
@@ -92,6 +92,7 @@ main(int argc, char **argv)
    file = argv[0];
 
    prog_x11_init();
+   imlib_context_set_colormap(None);
 
    if (draw == None)
       draw = DefaultRootWindow(disp);
diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index 1ae7845..cbfff97 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -658,6 +658,7 @@ main(int argc, char **argv)
      }
 
    prog_x11_init();
+   imlib_context_set_colormap(None);
 
    win = prog_x11_create_window("imlib2_view", 10, 10);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to