Mercurial > mm7
comparison Render.cpp @ 2219:e6771956e74a
for mouse
author | Ritor1 |
---|---|
date | Mon, 17 Feb 2014 17:28:06 +0600 |
parents | 744ed51880ed |
children | c69013c186c7 |
comparison
equal
deleted
inserted
replaced
2218:e8f9a06c7bcb | 2219:e6771956e74a |
---|---|
6797 } | 6797 } |
6798 | 6798 |
6799 //----- (004A6DF5) -------------------------------------------------------- | 6799 //----- (004A6DF5) -------------------------------------------------------- |
6800 void Render::_4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, Vec2_int_ *pBitmapXY, void *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7) | 6800 void Render::_4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, Vec2_int_ *pBitmapXY, void *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7) |
6801 { | 6801 { |
6802 int v8; // ecx@3 | 6802 int width; // ecx@3 |
6803 unsigned __int16 *v10; // ebx@4 | 6803 unsigned __int16 *pixels; // ebx@4 |
6804 int v11; // esi@4 | 6804 int height; // esi@4 |
6805 | 6805 |
6806 if ( !pBitmap || !pTarget) | 6806 if ( !pBitmap || !pTarget) |
6807 return; | 6807 return; |
6808 | 6808 |
6809 v8 = a7->z - a7->x; | 6809 width = a7->z - a7->x; |
6810 v11 = a7->w - a7->y; | 6810 height = a7->w - a7->y; |
6811 v10 = (unsigned short *)pTarget + a7->x + uTargetPitch * a7->y; | 6811 pixels = (unsigned short *)pTarget + a7->x + uTargetPitch * a7->y; |
6812 for ( int y = 0; y < v11; ++y ) | 6812 for ( int y = 0; y < height; ++y ) |
6813 { | 6813 { |
6814 for ( int x = 0; x < v8; ++x ) | 6814 for ( int x = 0; x < width; ++x ) |
6815 { | 6815 { |
6816 WritePixel16(a7->x + x, a7->y + y, *v10); | 6816 WritePixel16(a7->x + x, a7->y + y, *pixels); |
6817 ++v10; | 6817 ++pixels; |
6818 } | 6818 } |
6819 v10 += uTargetPitch - v8; | 6819 pixels += uTargetPitch - width; |
6820 } | 6820 } |
6821 } | 6821 } |
6822 | 6822 |
6823 //----- (004A6D87) -------------------------------------------------------- | 6823 //----- (004A6D87) -------------------------------------------------------- |
6824 void Render::FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16) | 6824 void Render::FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16) |