1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix backgrounds load.

This commit is contained in:
Sergey Lipskiy 2014-10-24 19:07:16 +07:00
parent f40ecc7a75
commit 74b0b5cf55

View File

@ -2122,8 +2122,10 @@ void _loadBGImage(const uObjScaleBg * _bgInfo, bool _loadScale)
{
gSP.bgImage.address = RSP_SegmentToPhysical( _bgInfo->imagePtr );
gSP.bgImage.width = _bgInfo->imageW >> 2;
gSP.bgImage.height = _bgInfo->imageH >> 2;
const u32 imageW = _bgInfo->imageW >> 2;
gSP.bgImage.width = imageW - imageW%2;
const u32 imageH = _bgInfo->imageH >> 2;
gSP.bgImage.height = imageH - imageH%2;
gSP.bgImage.format = _bgInfo->imageFmt;
gSP.bgImage.size = _bgInfo->imageSiz;
gSP.bgImage.palette = _bgInfo->imagePal;