Krolyxon
Commit 6ffc64a

Branches

Refs →

nsxiv6ffc64a

img_t: rename alpha -> alpha_layer for consistency

Author
NRK
Date
2023-01-17 15:57 +0600
Committer
Gitea · 2023-01-28 10:23 +0000
Parent
1f788a3
Commit
6ffc64a04e5e4200103db9df6bd85f958a942d9f

+4 −4

3 files changed

  1. M commands.c +1 −1
  2. M image.c +2 −2
  3. M nsxiv.h +1 −1
M commands.c View
@@ -385,7 +385,7 @@ bool ci_toggle_antialias(arg_t _)
385385
386386 bool ci_toggle_alpha(arg_t _)
387387 {
388− img.alpha = !img.alpha;
388+ img.alpha_layer = !img.alpha_layer;
389389 img.dirty = true;
390390 return true;
391391 }
M image.c View
@@ -91,7 +91,7 @@ void img_init(img_t *img, win_t *win)
9191 img->checkpan = false;
9292 img->dirty = false;
9393 img->anti_alias = options->anti_alias;
94− img->alpha = options->alpha_layer;
94+ img->alpha_layer = options->alpha_layer;
9595 img->multi.cap = img->multi.cnt = 0;
9696 img->multi.animate = options->animate;
9797 img->multi.framedelay = options->framerate > 0 ? 1000 / options->framerate : 0;
@@ -763,7 +763,7 @@ void img_render(img_t *img)
763763 imlib_context_set_image(bg);
764764 imlib_image_set_has_alpha(0);
765765
766− if (img->alpha) {
766+ if (img->alpha_layer) {
767767 int i, c, r;
768768 uint32_t col[2] = { 0xFF666666, 0xFF999999 };
769769 uint32_t *data = imlib_image_get_data();
M nsxiv.h View
@@ -190,7 +190,7 @@ struct img {
190190 bool checkpan;
191191 bool dirty;
192192 bool anti_alias;
193− bool alpha;
193+ bool alpha_layer;
194194
195195 struct {
196196 bool on;