Mercurial > might-and-magic-trilogy
diff mm7_4.cpp @ 92:9a2fa2f2cce0
minor fixes
author | Nomad |
---|---|
date | Thu, 01 Nov 2012 11:58:02 +0200 |
parents | 517e33e08d93 |
children | c97dfd4b9600 |
line wrap: on
line diff
--- a/mm7_4.cpp Mon Oct 29 01:36:20 2012 +0200 +++ b/mm7_4.cpp Thu Nov 01 11:58:02 2012 +0200 @@ -7244,7 +7244,7 @@ } //----- (004A597D) -------------------------------------------------------- -void __cdecl Present_NoColorKey() +void Present_NoColorKey() { //unsigned __int16 *v0; // eax@4 unsigned __int16 *v1; // esi@4 @@ -7334,7 +7334,7 @@ auto uHalfWidth = v20 = (pViewport->uViewportZ - pViewport->uViewportX) / 2; v13 = v24; - for (uint y = pViewport->uViewportY; y < pViewport->uViewportW; ++y) + for (uint y = pViewport->uViewportY; y < pViewport->uViewportW + 1; ++y) { //memcpy(pDst + pViewport->uViewportX + y * Dst.lPitch / 2, // pSrc + pViewport->uViewportX + y * 640, (pViewport->uViewportZ - pViewport->uViewportX) * sizeof(__int16));