render-cg: remove now-unused section of .effects field of image command

This commit is contained in:
Lephe 2022-05-06 16:52:05 +01:00
parent ede19fc878
commit 667f43b45c
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
11 changed files with 3 additions and 17 deletions

View File

@ -263,10 +263,9 @@ struct gint_image_cmd
{
/* Shader ID. This is used in Azur, and ignored in gint */
uint8_t shader_id;
/* Dynamic effects
Bit 0: VFLIP
Bit 1: HFLIP
Bits 2-7: 0=NONE, 1=CLEARBG, 2=SWAPCOLOR, 3=DYE */
/* Dynamic effects not already dispatched by renderer
Bit 0: VFLIP
Bit 1: HFLIP */
uint8_t effect;
/* Number of pixels to render per line. For formats that force either x

View File

@ -35,7 +35,6 @@ void dsubimage_p4_clearbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 4;
cmd.color_1 = bg_color;
cmd.loop = gint_image_p4_clearbg;
gint_image_p4_loop(DWIDTH, &cmd);

View File

@ -15,7 +15,6 @@ void dsubimage_p4_clearbg_alt(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, true, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 16;
cmd.color_1 = bg_color;
cmd.loop = gint_image_p4_clearbg_alt;
gint_image_p4_loop(DWIDTH, &cmd);

View File

@ -15,7 +15,6 @@ void dsubimage_p4_dye(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, true, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 12;
cmd.color_1 = img->alpha;
cmd.color_2 = dye_color;
cmd.loop = gint_image_p4_dye;

View File

@ -16,7 +16,6 @@ void dsubimage_p4_swapcolor(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, true, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = old_index;
cmd.color_2 = new_color;
cmd.loop = gint_image_p4_swapcolor;
@ -38,7 +37,6 @@ void dsubimage_p4_addbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, true, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = img->alpha;
cmd.color_2 = bg_color;
cmd.loop = gint_image_p4_swapcolor;

View File

@ -35,7 +35,6 @@ void dsubimage_p8_clearbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 4;
cmd.color_1 = bg_color;
cmd.loop = gint_image_p8_clearbg;
gint_image_p8_loop(DWIDTH, &cmd);

View File

@ -15,7 +15,6 @@ void dsubimage_p8_dye(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, true, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 12;
cmd.color_1 = img->alpha;
cmd.color_2 = dye_color;
cmd.loop = gint_image_p8_dye;

View File

@ -16,7 +16,6 @@ void dsubimage_p8_swapcolor(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = old_index;
cmd.color_2 = new_color;
cmd.loop = gint_image_p8_swapcolor;
@ -38,7 +37,6 @@ void dsubimage_p8_addbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = img->alpha;
cmd.color_2 = bg_color;
cmd.loop = gint_image_p8_swapcolor;

View File

@ -36,7 +36,6 @@ void dsubimage_rgb16_clearbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 4;
cmd.color_1 = bg_color;
cmd.loop = gint_image_rgb16_clearbg;
gint_image_rgb16_loop(DWIDTH, &cmd);

View File

@ -15,7 +15,6 @@ void dsubimage_rgb16_dye(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 12;
cmd.color_1 = img->alpha;
cmd.color_2 = dye_color;
cmd.loop = gint_image_rgb16_dye;

View File

@ -16,7 +16,6 @@ void dsubimage_rgb16_swapcolor(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = old_color;
cmd.color_2 = new_color;
cmd.loop = gint_image_rgb16_swapcolor;
@ -38,7 +37,6 @@ void dsubimage_rgb16_addbg(int x, int y, image_t const *img,
if(!gint_image_mkcmd(&box, img, eff, false, false, &cmd, DWIDTH,
DHEIGHT)) return;
cmd.effect += 8;
cmd.color_1 = img->alpha;
cmd.color_2 = bg_color;
cmd.loop = gint_image_rgb16_swapcolor;