From e685859a30560e076db4de003fba4e4500ade2c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sun, 6 Apr 2014 22:47:42 +0200 Subject: Use a checkerboard background for alpha layer; fixes issue #138 --- config.def.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 4236302..03d05bb 100644 --- a/config.def.h +++ b/config.def.h @@ -47,24 +47,21 @@ enum { static const double GAMMA_MAX = 10.0; static const int GAMMA_RANGE = 32; -#endif -#ifdef _THUMBS_CONFIG - -/* default dimension of thumbnails (width == height): */ -enum { THUMB_SIZE = 60 }; - -#endif -#ifdef _RENDER_CONFIG - /* if false, pixelate images at zoom level != 100%, * toggled with 'a' key binding */ -static const bool RENDER_ANTI_ALIAS = true; +static const bool ANTI_ALIAS = true; -/* if true, use white background for alpha layer, +/* if true, use a checkerboard background for alpha layer, * toggled with 'A' key binding */ -static const bool RENDER_WHITE_ALPHA = false; +static const bool ALPHA_LAYER = false; + +#endif +#ifdef _THUMBS_CONFIG + +/* default dimension of thumbnails (width == height): */ +enum { THUMB_SIZE = 60 }; #endif #ifdef _MAPPINGS_CONFIG @@ -145,7 +142,7 @@ static const keymap_t keys[] = { { 0, XK_s, i_slideshow, (arg_t) None }, { 0, XK_a, i_toggle_antialias, (arg_t) None }, - { 0, XK_A, it_toggle_alpha, (arg_t) None }, + { 0, XK_A, i_toggle_alpha, (arg_t) None }, { 0, XK_braceleft, i_change_gamma, (arg_t) -1 }, { 0, XK_braceright, i_change_gamma, (arg_t) +1 }, -- cgit v1.2.3