# HG changeset patch # User Ritor1 # Date 1350357055 -21600 # Node ID 7022d20db19f2421bd6042157a7ea25e851ce96e # Parent 77da38f82079ebfbf47bd25cf0e50e0d143545e2# Parent 93bf1d5f6a6d8309963cc2584909cff5fe5bf082 Слияние diff -r 93bf1d5f6a6d -r 7022d20db19f Render.cpp --- a/Render.cpp Tue Oct 16 00:05:53 2012 +0200 +++ b/Render.cpp Tue Oct 16 09:10:55 2012 +0600 @@ -6915,7 +6915,7 @@ IDirectDrawSurface **v1; // esi@2 if ( pVersion->pVersionInfo.dwPlatformId != VER_PLATFORM_WIN32_NT - || (v1 = (IDirectDrawSurface **)&this->pFrontBuffer2, pVersion->pVersionInfo.dwMajorVersion != 4) ) + || (v1 = (IDirectDrawSurface **)&this->pFrontBuffer2, pVersion->pVersionInfo.dwMajorVersion >= 5u) ) v1 = (IDirectDrawSurface **)&this->pFrontBuffer4; if ( (*v1)->IsLost() == DDERR_SURFACELOST ) (*v1)->Restore(); diff -r 93bf1d5f6a6d -r 7022d20db19f Texture.cpp --- a/Texture.cpp Tue Oct 16 00:05:53 2012 +0200 +++ b/Texture.cpp Tue Oct 16 09:10:55 2012 +0600 @@ -641,24 +641,22 @@ uNumPixels=uWidth*uHeight; // dword @ 000010 memset(pOutPixels, 0, uNumPixels * sizeof(__int16)); - - for (short i=1; i<=15; i++) - { - if ((1<= 15) + break; + } + field_18=i; + short i_=1; + while ( (1<= 15) + break; + } + field_1A=i_; switch (field_18) { case 2: field_1C = 3; break; @@ -692,9 +690,9 @@ read_offset = 128; if (psx_head2.planes != 3) - return 3; + return 0; current_line = 0; - if ( uWidth > 0 ) + if ( uHeight > 0 ) { dec_position = pOutPixels; do @@ -706,11 +704,11 @@ { do { - test_byte = *(pPcx + read_offset); + test_byte = pPcx[read_offset]; ++read_offset; if ((test_byte & 0xC0) == 0xC0) { - value = *(pPcx + read_offset); + value = pPcx[read_offset]; ++read_offset; if ((test_byte & 0x3F) > 0)