aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-01-17 10:57:57 +0100
committerGitea <gitea@fake.local>2023-01-28 11:23:11 +0100
commit6ffc64a04e5e4200103db9df6bd85f958a942d9f (patch)
tree9bb359d9c056189701041032944bed9706fb23aa
parent1f788a318bedc0e6a83632c1f126e747c0430d6c (diff)
downloadnsxiv-6ffc64a04e5e4200103db9df6bd85f958a942d9f.tar.zst
img_t: rename alpha -> alpha_layer for consistency
-rw-r--r--commands.c2
-rw-r--r--image.c4
-rw-r--r--nsxiv.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index 1ba0363..c1e19b4 100644
--- a/commands.c
+++ b/commands.c
@@ -385,7 +385,7 @@ bool ci_toggle_antialias(arg_t _)
bool ci_toggle_alpha(arg_t _)
{
- img.alpha = !img.alpha;
+ img.alpha_layer = !img.alpha_layer;
img.dirty = true;
return true;
}
diff --git a/image.c b/image.c
index 8ac7a27..57955d8 100644
--- a/image.c
+++ b/image.c
@@ -91,7 +91,7 @@ void img_init(img_t *img, win_t *win)
img->checkpan = false;
img->dirty = false;
img->anti_alias = options->anti_alias;
- img->alpha = options->alpha_layer;
+ img->alpha_layer = options->alpha_layer;
img->multi.cap = img->multi.cnt = 0;
img->multi.animate = options->animate;
img->multi.framedelay = options->framerate > 0 ? 1000 / options->framerate : 0;
@@ -763,7 +763,7 @@ void img_render(img_t *img)
imlib_context_set_image(bg);
imlib_image_set_has_alpha(0);
- if (img->alpha) {
+ if (img->alpha_layer) {
int i, c, r;
uint32_t col[2] = { 0xFF666666, 0xFF999999 };
uint32_t *data = imlib_image_get_data();
diff --git a/nsxiv.h b/nsxiv.h
index ab3673f..cd571af 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -190,7 +190,7 @@ struct img {
bool checkpan;
bool dirty;
bool anti_alias;
- bool alpha;
+ bool alpha_layer;
struct {
bool on;