- Fixed: In letterbox modes, the clipping window needs to be adjusted down.

SVN r1863 (trunk)
This commit is contained in:
Randy Heit 2009-09-22 01:28:13 +00:00
parent 8377927412
commit e9d61a3f46
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
September 21, 2009
- Fixed: In letterbox modes, the clipping window needs to be adjusted down.
September 21, 2009 (Changes by Graf Zahl) September 21, 2009 (Changes by Graf Zahl)
- Fixed: When drawing with a special colormap the quad's flags weren't cleared - Fixed: When drawing with a special colormap the quad's flags weren't cleared
which could cause crashes. which could cause crashes.

View File

@ -2569,7 +2569,10 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, int x, int y, uint32 tags_fi
EndQuadBatch(); EndQuadBatch();
BeginQuadBatch(); BeginQuadBatch();
} }
RECT scissor = { parms.lclip, parms.uclip, parms.rclip, parms.dclip }; RECT scissor = {
parms.lclip, parms.uclip + LBOffsetI,
parms.rclip, parms.dclip + LBOffsetI
};
D3DDevice->SetScissorRect(&scissor); D3DDevice->SetScissorRect(&scissor);
D3DDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE); D3DDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE);
} }