mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-01 00:12:27 +00:00
Multilayer skies (Hexen) now properly show in truecolor mode. This is only supported for paletted skies, but it still offers a true-color output.
This commit is contained in:
parent
bbec9b86a3
commit
6e3a49b065
1 changed files with 5 additions and 2 deletions
|
@ -920,7 +920,7 @@ static const BYTE *R_GetTwoSkyColumns (FTexture *fronttex, int x)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return R_GetOneSkyColumn(fronttex, x);
|
//return R_GetOneSkyColumn(fronttex, x);
|
||||||
for (i = 0; i < 4; ++i)
|
for (i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
if (lastskycol_bgra[i] == skycol)
|
if (lastskycol_bgra[i] == skycol)
|
||||||
|
@ -939,11 +939,14 @@ static const BYTE *R_GetTwoSkyColumns (FTexture *fronttex, int x)
|
||||||
const uint32_t *front = (const uint32_t *)fronttex->GetColumnBgra(angle1, NULL);
|
const uint32_t *front = (const uint32_t *)fronttex->GetColumnBgra(angle1, NULL);
|
||||||
const uint32_t *back = (const uint32_t *)backskytex->GetColumnBgra(angle2, NULL);
|
const uint32_t *back = (const uint32_t *)backskytex->GetColumnBgra(angle2, NULL);
|
||||||
|
|
||||||
|
//[SP] Paletted version is used for comparison only
|
||||||
|
const BYTE *frontcompare = fronttex->GetColumn(angle1, NULL);
|
||||||
|
|
||||||
int count = MIN<int>(512, MIN(backskytex->GetHeight(), fronttex->GetHeight()));
|
int count = MIN<int>(512, MIN(backskytex->GetHeight(), fronttex->GetHeight()));
|
||||||
i = 0;
|
i = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (front[i])
|
if (frontcompare[i])
|
||||||
{
|
{
|
||||||
composite[i] = front[i];
|
composite[i] = front[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue