Mercurial > mm7
diff mm7_2.cpp @ 810:f5156b8c61ad
savegame refactoring
author | Gloval |
---|---|
date | Tue, 26 Mar 2013 00:57:54 +0400 |
parents | f004c7ceb7bd |
children | 35122475edd7 cfc65feef029 |
line wrap: on
line diff
--- a/mm7_2.cpp Mon Mar 25 14:56:50 2013 +0200 +++ b/mm7_2.cpp Tue Mar 26 00:57:54 2013 +0400 @@ -6256,8 +6256,8 @@ } //----- (0045E03A) -------------------------------------------------------- -unsigned __int16 *__fastcall MakeScreenshot(signed int width, signed int height) -{ +unsigned short * MakeScreenshot( signed int width, signed int height ) + { signed int v2; // edi@1 unsigned __int16 *v3; // ebx@1 int v4; // edx@7 @@ -6293,7 +6293,8 @@ v23 = 452.0 / (double)width; v25 = 336.0 / (double)height; pPixels = (unsigned __int16 *)malloc(2 * height * width); - v3 = pPixels; + memset(pPixels,0,2 * height * width); + /*v3 = pPixels; if ( pRenderer->pRenderD3D ) { pRenderer->BeginSceneD3D(); @@ -6421,7 +6422,7 @@ } } pRenderer->EndScene(); - } + }*/ return pPixels; }