Mercurial > mm7
comparison mm7_2.cpp @ 824:fe4c8b113548
Merge
author | Nomad |
---|---|
date | Tue, 26 Mar 2013 20:06:51 +0200 |
parents | c1da83d8223f 5e3f4bf3b8e6 |
children | 085eb19b7ffd |
comparison
equal
deleted
inserted
replaced
823:c1da83d8223f | 824:fe4c8b113548 |
---|---|
6311 Dst.dwSize = sizeof(Dst); | 6311 Dst.dwSize = sizeof(Dst); |
6312 | 6312 |
6313 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, DDLOCK_WAIT) ) | 6313 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, DDLOCK_WAIT) ) |
6314 { | 6314 { |
6315 auto src = (unsigned __int16 *)Dst.lpSurface; | 6315 auto src = (unsigned __int16 *)Dst.lpSurface; |
6316 auto src_width = (Dst.lPitch / sizeof(short)), | 6316 auto src_width = (Dst.lPitch / sizeof(short)); |
6317 src_height = Dst.dwHeight; | 6317 auto src_height = Dst.dwHeight; |
6318 auto dst = pPixels; | 6318 auto dst = pPixels; |
6319 for (uint y = 0; y < height; ++y) | 6319 for (uint y = 0; y < height; ++y) |
6320 { | 6320 { |
6321 //uint src_y = (game_viewport_y + y * v25) * (Dst.lPitch / sizeof(short)); | 6321 //uint src_y = (game_viewport_y + y * v25) * (Dst.lPitch / sizeof(short)); |
6322 uint src_y = game_viewport_y + y * v25; | 6322 uint src_y = game_viewport_y + y * v25; |