mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- Fixed stretching for 256 and 240 pixels tall skies in software.
This commit is contained in:
parent
fe637a9116
commit
03e6c1ac20
2 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ void InitSkyMap(FLevelLocals *Level)
|
||||||
skyheight = skytex1->GetDisplayHeight();
|
skyheight = skytex1->GetDisplayHeight();
|
||||||
|
|
||||||
Level->skystretch = (r_skymode == 1
|
Level->skystretch = (r_skymode == 1
|
||||||
&& skyheight >= 128 && skyheight < 310
|
&& skyheight >= 128 && skyheight <= 256
|
||||||
&& Level->IsFreelookAllowed()
|
&& Level->IsFreelookAllowed()
|
||||||
&& !(Level->flags & LEVEL_FORCETILEDSKY)) ? 1 : 0;
|
&& !(Level->flags & LEVEL_FORCETILEDSKY)) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace swrenderer
|
||||||
FSoftwareTexture *sskytex2 = skytex2->GetSoftwareTexture();
|
FSoftwareTexture *sskytex2 = skytex2->GetSoftwareTexture();
|
||||||
skytexturemid = 0;
|
skytexturemid = 0;
|
||||||
int skyheight = skytex1->GetDisplayHeight();
|
int skyheight = skytex1->GetDisplayHeight();
|
||||||
skyoffset = cl_oldfreelooklimit? 0 : skyheight >= 200? 110 : 138;
|
skyoffset = cl_oldfreelooklimit? 0 : skyheight == 256? 166 : skyheight >= 240? 150 : skyheight >= 200? 110 : 138;
|
||||||
if (skyheight >= 128 && skyheight < 200)
|
if (skyheight >= 128 && skyheight < 200)
|
||||||
{
|
{
|
||||||
skytexturemid = -28;
|
skytexturemid = -28;
|
||||||
|
|
Loading…
Reference in a new issue