comparison SaveLoad.cpp @ 2133:e378232bfd36

screenshot
author Ritor1
date Tue, 31 Dec 2013 16:26:08 +0600
parents 49de109bbab5
children d28d3c006077
comparison
equal deleted inserted replaced
2132:49de109bbab5 2133:e378232bfd36
710 pIndoor->Draw(); 710 pIndoor->Draw();
711 else if (uCurrentlyLoadedLevelType == LEVEL_Outdoor) 711 else if (uCurrentlyLoadedLevelType == LEVEL_Outdoor)
712 pOutdoor->Draw(); 712 pOutdoor->Draw();
713 713
714 pRenderer->DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene(); 714 pRenderer->DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene();
715 memset(&Dst, 0, 0x7Cu); 715 memset(&Dst, 0, 0x7C);
716 Dst.dwSize = sizeof(Dst); 716 Dst.dwSize = sizeof(Dst);
717 717
718 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, DDLOCK_WAIT) ) 718 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, DDLOCK_WAIT) )
719 { 719 {
720 for (uint y = 0; y < height; ++y) 720 for (uint y = 0; y < height; ++y)
723 { 723 {
724 //*v3 = pRenderer->ReadPixel16((int)(x* interval_x + 8.0), (int)(y * interval_y + 8.0));//screen_data[screen_y + (int)(x* interval_x + 8.0)]; 724 //*v3 = pRenderer->ReadPixel16((int)(x* interval_x + 8.0), (int)(y * interval_y + 8.0));//screen_data[screen_y + (int)(x* interval_x + 8.0)];
725 725
726 if (Dst.ddpfPixelFormat.dwRGBBitCount == 32) 726 if (Dst.ddpfPixelFormat.dwRGBBitCount == 32)
727 { 727 {
728 auto p = (unsigned __int32 *)Dst.lpSurface + (int)(x * interval_x + 8.0) + y /*(int)(y * interval_y + 8.0)*/ * Dst.lPitch; 728 auto p = (unsigned __int32 *)Dst.lpSurface + (int)(x * interval_x + 8.0) + y/* (int)(y * interval_y + 8.0)*/ * Dst.lPitch;
729 *v3 = Color16((*p >> 16) & 255, (*p >> 8) & 255, *p & 255); 729 *v3 = Color16((*p >> 16) & 255, (*p >> 8) & 255, *p & 255);
730 } 730 }
731 else if (Dst.ddpfPixelFormat.dwRGBBitCount == 16) 731 else if (Dst.ddpfPixelFormat.dwRGBBitCount == 16)
732 { 732 {
733 auto p = (unsigned __int16 *)Dst.lpSurface + (int)(x * interval_x + 8.0) + y * Dst.lPitch; 733 auto p = (unsigned __int16 *)Dst.lpSurface + (int)(x * interval_x + 8.0) + y * Dst.lPitch;