Mercurial > mm7
diff Render.cpp @ 2219:e6771956e74a
for mouse
author | Ritor1 |
---|---|
date | Mon, 17 Feb 2014 17:28:06 +0600 |
parents | 744ed51880ed |
children | c69013c186c7 |
line wrap: on
line diff
--- a/Render.cpp Sun Feb 16 21:49:39 2014 +0600 +++ b/Render.cpp Mon Feb 17 17:28:06 2014 +0600 @@ -6799,24 +6799,24 @@ //----- (004A6DF5) -------------------------------------------------------- void Render::_4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, Vec2_int_ *pBitmapXY, void *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7) { - int v8; // ecx@3 - unsigned __int16 *v10; // ebx@4 - int v11; // esi@4 + int width; // ecx@3 + unsigned __int16 *pixels; // ebx@4 + int height; // esi@4 if ( !pBitmap || !pTarget) return; - v8 = a7->z - a7->x; - v11 = a7->w - a7->y; - v10 = (unsigned short *)pTarget + a7->x + uTargetPitch * a7->y; - for ( int y = 0; y < v11; ++y ) - { - for ( int x = 0; x < v8; ++x ) - { - WritePixel16(a7->x + x, a7->y + y, *v10); - ++v10; - } - v10 += uTargetPitch - v8; + width = a7->z - a7->x; + height = a7->w - a7->y; + pixels = (unsigned short *)pTarget + a7->x + uTargetPitch * a7->y; + for ( int y = 0; y < height; ++y ) + { + for ( int x = 0; x < width; ++x ) + { + WritePixel16(a7->x + x, a7->y + y, *pixels); + ++pixels; + } + pixels += uTargetPitch - width; } }