Mercurial > mm7
comparison mm7_2.cpp @ 810:f5156b8c61ad
savegame refactoring
author | Gloval |
---|---|
date | Tue, 26 Mar 2013 00:57:54 +0400 |
parents | f004c7ceb7bd |
children | 35122475edd7 cfc65feef029 |
comparison
equal
deleted
inserted
replaced
796:14beae4f1723 | 810:f5156b8c61ad |
---|---|
6254 fclose(File); | 6254 fclose(File); |
6255 return 1; | 6255 return 1; |
6256 } | 6256 } |
6257 | 6257 |
6258 //----- (0045E03A) -------------------------------------------------------- | 6258 //----- (0045E03A) -------------------------------------------------------- |
6259 unsigned __int16 *__fastcall MakeScreenshot(signed int width, signed int height) | 6259 unsigned short * MakeScreenshot( signed int width, signed int height ) |
6260 { | 6260 { |
6261 signed int v2; // edi@1 | 6261 signed int v2; // edi@1 |
6262 unsigned __int16 *v3; // ebx@1 | 6262 unsigned __int16 *v3; // ebx@1 |
6263 int v4; // edx@7 | 6263 int v4; // edx@7 |
6264 unsigned __int8 v5; // cf@9 | 6264 unsigned __int8 v5; // cf@9 |
6265 unsigned int v6; // ecx@9 | 6265 unsigned int v6; // ecx@9 |
6291 v2 = height; | 6291 v2 = height; |
6292 v27 = height; | 6292 v27 = height; |
6293 v23 = 452.0 / (double)width; | 6293 v23 = 452.0 / (double)width; |
6294 v25 = 336.0 / (double)height; | 6294 v25 = 336.0 / (double)height; |
6295 pPixels = (unsigned __int16 *)malloc(2 * height * width); | 6295 pPixels = (unsigned __int16 *)malloc(2 * height * width); |
6296 v3 = pPixels; | 6296 memset(pPixels,0,2 * height * width); |
6297 /*v3 = pPixels; | |
6297 if ( pRenderer->pRenderD3D ) | 6298 if ( pRenderer->pRenderD3D ) |
6298 { | 6299 { |
6299 pRenderer->BeginSceneD3D(); | 6300 pRenderer->BeginSceneD3D(); |
6300 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor ) | 6301 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor ) |
6301 { | 6302 { |
6419 } | 6420 } |
6420 while ( v17 ); | 6421 while ( v17 ); |
6421 } | 6422 } |
6422 } | 6423 } |
6423 pRenderer->EndScene(); | 6424 pRenderer->EndScene(); |
6424 } | 6425 }*/ |
6425 return pPixels; | 6426 return pPixels; |
6426 } | 6427 } |
6427 | 6428 |
6428 //----- (0045E26C) -------------------------------------------------------- | 6429 //----- (0045E26C) -------------------------------------------------------- |
6429 void __thiscall SaveScreenshot(const char *pFilename) | 6430 void __thiscall SaveScreenshot(const char *pFilename) |