added workaround for +1 scanline size in 16bit mode
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@138 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
1b43a20316
commit
417a1bad2d
|
@ -484,7 +484,15 @@ void Direct3DDisplay::render()
|
|||
return;
|
||||
} else {
|
||||
if( !theApp.filterFunction ) {
|
||||
copyImage( pix, lr.pBits, theApp.sizeX, theApp.sizeY, lr.Pitch, systemColorDepth );
|
||||
copyImage(
|
||||
pix,
|
||||
lr.pBits,
|
||||
(systemColorDepth == 32) ? theApp.sizeX
|
||||
: theApp.sizeX + 1, // TODO: workaround results in one pixel black border at right side
|
||||
theApp.sizeY,
|
||||
lr.Pitch,
|
||||
systemColorDepth
|
||||
);
|
||||
} else {
|
||||
u32 pitch = theApp.filterWidth * (systemColorDepth>>3) + 4;
|
||||
theApp.filterFunction( pix + pitch,
|
||||
|
|
|
@ -722,6 +722,9 @@ void DirectDrawDisplay::render()
|
|||
copyY = 144;
|
||||
}
|
||||
}
|
||||
if( systemColorDepth == 16 ) {
|
||||
copyX++; // TODO: workaround results in one pixel black border at right side
|
||||
}
|
||||
copyImage( pix, ddsDesc.lpSurface, copyX, copyY, ddsDesc.lPitch, systemColorDepth );
|
||||
}
|
||||
if(theApp.showSpeed && (theApp.videoOption > VIDEO_4X || theApp.skin != NULL)) {
|
||||
|
|
Loading…
Reference in New Issue