Mercurial > mm7
diff Render.cpp @ 2073:38bf1c70fc70
some text rendering fix
author | Gloval |
---|---|
date | Wed, 04 Dec 2013 08:50:24 +0400 |
parents | 259df09dfb50 |
children | 121316212c1c |
line wrap: on
line diff
--- a/Render.cpp Tue Dec 03 21:30:40 2013 +0200 +++ b/Render.cpp Wed Dec 04 08:50:24 2013 +0400 @@ -7114,7 +7114,9 @@ } //----- (004A6C4F) -------------------------------------------------------- -void Render::DrawText(signed int uOutX, signed int uOutY, unsigned __int8 *pFontPixels, unsigned int uCharWidth, unsigned int uCharHeight, unsigned __int16 *pFontPalette, unsigned __int16 uFaceColor, unsigned __int16 uShadowColor) +void Render::DrawText(signed int uOutX, signed int uOutY, unsigned __int8 *pFontPixels, unsigned int uCharWidth, + unsigned int uCharHeight, unsigned __int16 *pFontPalette, + unsigned __int16 uFaceColor, unsigned __int16 uShadowColor) { unsigned int v9; // edi@2 unsigned int v10; // esi@2 @@ -7195,10 +7197,11 @@ v22 = uShadowColor; if ( *v24 != 1 ) v22 = uFaceColor; - WritePixel16(clipped_out_x + x, clipped_out_y + y, v22); + WritePixel16(clipped_out_x + x, clipped_out_y + y, v22); } - } - v24 += uCharWidth - v9; + ++v24; + } + v24 += uCharWidth - v9; //v23 = uOutXa-- == 1; //v11 += this->uTargetSurfacePitch - v9; }