summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-08-22 12:59:05 +0200
committerBert Münnich <be.muennich@gmail.com>2013-08-22 12:59:05 +0200
commit26a624a543f2e723550996d76d90ccbb7b954aeb (patch)
tree8799c977b965656ccea3c9ec14c7ba00f0204a0f /image.c
parentfb6e4bdd980f72082a264894c12ed7e0650a5bf9 (diff)
downloadnsxiv-26a624a543f2e723550996d76d90ccbb7b954aeb.tar.zst
Added options for anti-alias & alpha layer coloring to config.def.h
Also removed now obsolete -p command line option; fixes issue #98
Diffstat (limited to 'image.c')
-rw-r--r--image.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/image.c b/image.c
index cc93cd8..ec248e1 100644
--- a/image.c
+++ b/image.c
@@ -18,6 +18,7 @@
#define _POSIX_C_SOURCE 200112L
#define _IMAGE_CONFIG
+#define _RENDER_CONFIG
#include <stdlib.h>
#include <string.h>
@@ -62,8 +63,8 @@ void img_init(img_t *img, win_t *win)
img->zoom = MIN(img->zoom, zoom_max);
img->checkpan = false;
img->dirty = false;
- img->aa = options->aa;
- img->alpha = true;
+ img->aa = RENDER_ANTI_ALIAS;
+ img->alpha = !RENDER_WHITE_ALPHA;
img->multi.cap = img->multi.cnt = 0;
img->multi.animate = false;
}