diff options
Diffstat (limited to 'src/GPU3D.cpp')
-rw-r--r-- | src/GPU3D.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 6b69b54..988b92b 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -179,7 +179,7 @@ u8 RenderAlphaRef; u16 RenderToonTable[32]; u16 RenderEdgeTable[8]; -u32 RenderFogColor, RenderFogOffset; +u32 RenderFogColor, RenderFogOffset, RenderFogShift; u8 RenderFogDensityTable[34]; u32 RenderClearAttr1, RenderClearAttr2; @@ -1862,7 +1862,8 @@ void VBlank() memcpy(RenderToonTable, ToonTable, 32*2); RenderFogColor = FogColor; - RenderFogOffset = FogOffset; + RenderFogOffset = FogOffset * 0x200; + RenderFogShift = (RenderDispCnt >> 8) & 0xF; RenderFogDensityTable[0] = FogDensityTable[0]; memcpy(&RenderFogDensityTable[1], FogDensityTable, 32); RenderFogDensityTable[33] = FogDensityTable[31]; |