mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-11 12:51:27 +00:00
Fixed window transparency bug
This commit is contained in:
parent
586d5cdf1e
commit
9c8c1e0ea5
1 changed files with 8 additions and 4 deletions
|
@ -588,6 +588,8 @@ class RtAdd4colsRGBACommand : public DrawerCommand
|
||||||
fixed_t dc_light;
|
fixed_t dc_light;
|
||||||
ShadeConstants dc_shade_constants;
|
ShadeConstants dc_shade_constants;
|
||||||
BYTE *dc_colormap;
|
BYTE *dc_colormap;
|
||||||
|
fixed_t dc_srcalpha;
|
||||||
|
fixed_t dc_destalpha;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RtAdd4colsRGBACommand(int sx, int yl, int yh)
|
RtAdd4colsRGBACommand(int sx, int yl, int yh)
|
||||||
|
@ -601,6 +603,8 @@ public:
|
||||||
dc_light = ::dc_light;
|
dc_light = ::dc_light;
|
||||||
dc_shade_constants = ::dc_shade_constants;
|
dc_shade_constants = ::dc_shade_constants;
|
||||||
dc_colormap = ::dc_colormap;
|
dc_colormap = ::dc_colormap;
|
||||||
|
dc_srcalpha = ::dc_srcalpha;
|
||||||
|
dc_destalpha = ::dc_destalpha;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NO_SSE
|
#ifdef NO_SSE
|
||||||
|
@ -722,10 +726,10 @@ public:
|
||||||
__m128i mbg_alpha = _mm_set_epi16(256, bg_alpha, bg_alpha, bg_alpha, 256, bg_alpha, bg_alpha, bg_alpha);
|
__m128i mbg_alpha = _mm_set_epi16(256, bg_alpha, bg_alpha, bg_alpha, 256, bg_alpha, bg_alpha, bg_alpha);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
uint32_t p0 = source[0];
|
uint32_t p0 = colormap[source[0]];
|
||||||
uint32_t p1 = source[1];
|
uint32_t p1 = colormap[source[1]];
|
||||||
uint32_t p2 = source[2];
|
uint32_t p2 = colormap[source[2]];
|
||||||
uint32_t p3 = source[3];
|
uint32_t p3 = colormap[source[3]];
|
||||||
|
|
||||||
// shade_pal_index:
|
// shade_pal_index:
|
||||||
__m128i fg = _mm_set_epi32(palette[p3], palette[p2], palette[p1], palette[p0]);
|
__m128i fg = _mm_set_epi32(palette[p3], palette[p2], palette[p1], palette[p0]);
|
||||||
|
|
Loading…
Reference in a new issue