comparison mm7_4.cpp @ 121:3471df3713e2

Teal line at game's viewport bottom fix
author Nomad
date Mon, 11 Feb 2013 17:29:51 +0200
parents 909822c91d47
children 1c471f3629fb
comparison
equal deleted inserted replaced
120:fe0e317c0de0 121:3471df3713e2
6825 pSrc + y * 640, 8 * sizeof(__int16)); 6825 pSrc + y * 640, 8 * sizeof(__int16));
6826 memcpy(pDst + 8 + 460/*462*/ + y * Dst.lPitch / 2, 6826 memcpy(pDst + 8 + 460/*462*/ + y * Dst.lPitch / 2,
6827 pSrc + 8 + 460/*462*/ + y * 640, 174/*172*/ * sizeof(__int16)); 6827 pSrc + 8 + 460/*462*/ + y * 640, 174/*172*/ * sizeof(__int16));
6828 } 6828 }
6829 6829
6830 for (uint y = 351/*352*/; y < 480; ++y) 6830 for (uint y = 352; y < 480; ++y)
6831 memcpy(pDst + y * Dst.lPitch / 2, 6831 memcpy(pDst + y * Dst.lPitch / 2,
6832 pSrc + y * 640, 640 * sizeof(__int16)); 6832 pSrc + y * 640, 640 * sizeof(__int16));
6833 6833
6834 6834
6835 auto pSrc_x1y1 = pSrc + 640 * pViewport->uViewportY + pViewport->uViewportX; 6835 auto pSrc_x1y1 = pSrc + 640 * pViewport->uViewportY + pViewport->uViewportX;
6839 v9 = ((signed int)pViewport->uViewportX >> 1) - ((signed int)pViewport->uViewportZ >> 1); 6839 v9 = ((signed int)pViewport->uViewportX >> 1) - ((signed int)pViewport->uViewportZ >> 1);
6840 //v20 = ((signed int)pViewport->uViewportZ >> 1) - ((signed int)pViewport->uViewportX >> 1); 6840 //v20 = ((signed int)pViewport->uViewportZ >> 1) - ((signed int)pViewport->uViewportX >> 1);
6841 v22 = 4 * ((Dst.lPitch / 4) + v9); 6841 v22 = 4 * ((Dst.lPitch / 4) + v9);
6842 v21 = 4 * v9 + 1280; 6842 v21 = 4 * v9 + 1280;
6843 6843
6844 auto uNumLines = pViewport->uViewportW - pViewport->uViewportY + 1; 6844 //auto uNumLines = pViewport->uViewportW - pViewport->uViewportY + 1;
6845 //v26 = (LPVOID)(pViewport->uViewportW - pViewport->uViewportY + 1); 6845 //v26 = (LPVOID)(pViewport->uViewportW - pViewport->uViewportY + 1);
6846 v10 = (int)pSrc_x1y1; 6846 v10 = (int)pSrc_x1y1;
6847 v11 = (int)pDst_x1y1; 6847 v11 = (int)pDst_x1y1;
6848 auto uHalfWidth = v20 = (pViewport->uViewportZ - pViewport->uViewportX) / 2; 6848 auto uHalfWidth = v20 = (pViewport->uViewportZ - pViewport->uViewportX) / 2;
6849 v13 = v24; 6849 v13 = v24;