Le 02/03/2011 12:36, Marco a écrit : > Hi, > > how can I change the background from checkerboard pattern to white when > displaying images with transparency? > > > Marco > Hi,
AFAIK you can't change it without modifying code. Funny enough, when one grep for "checker" current source code: src/pixbuf-renderer.c:/* alpha channel checkerboard background (same as gimp) */ src/pixbuf-renderer.c: /* FIXME checker colors for alpha should be configurable, I attached a patch to show you how to change it in the source, i don't have time to make a more complex patch to allow to configure it via Preferences yet (though if someone want to do one....). Regards, -- Zas
diff --git a/src/pixbuf-renderer.c b/src/pixbuf-renderer.c index 8522746..6946123 100644 --- a/src/pixbuf-renderer.c +++ b/src/pixbuf-renderer.c @@ -70,8 +70,9 @@ typedef enum { #define PR_SCROLLER_DEAD_ZONE 6 /* alpha channel checkerboard background (same as gimp) */ -#define PR_ALPHA_CHECK1 0x00999999 -#define PR_ALPHA_CHECK2 0x00666666 +#define PR_ALPHA_CHECK1 0x00FFFFFF +#define PR_ALPHA_CHECK2 0x00FFFFFF + #define PR_ALPHA_CHECK_SIZE 16 /* when scaling image to below this size, use nearest pixel for scaling
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel