Mercurial > mm7
comparison Render.cpp @ 2073:38bf1c70fc70
some text rendering fix
author | Gloval |
---|---|
date | Wed, 04 Dec 2013 08:50:24 +0400 |
parents | 259df09dfb50 |
children | 121316212c1c |
comparison
equal
deleted
inserted
replaced
2072:2737276390ff | 2073:38bf1c70fc70 |
---|---|
7112 ((unsigned __int16 *)pTargetSurface)[uX + uWidth - 1 + (y + uY) * uTargetSurfacePitch] = uColor16; | 7112 ((unsigned __int16 *)pTargetSurface)[uX + uWidth - 1 + (y + uY) * uTargetSurfacePitch] = uColor16; |
7113 } | 7113 } |
7114 } | 7114 } |
7115 | 7115 |
7116 //----- (004A6C4F) -------------------------------------------------------- | 7116 //----- (004A6C4F) -------------------------------------------------------- |
7117 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) | 7117 void Render::DrawText(signed int uOutX, signed int uOutY, unsigned __int8 *pFontPixels, unsigned int uCharWidth, |
7118 unsigned int uCharHeight, unsigned __int16 *pFontPalette, | |
7119 unsigned __int16 uFaceColor, unsigned __int16 uShadowColor) | |
7118 { | 7120 { |
7119 unsigned int v9; // edi@2 | 7121 unsigned int v9; // edi@2 |
7120 unsigned int v10; // esi@2 | 7122 unsigned int v10; // esi@2 |
7121 //unsigned __int16 *v11; // eax@2 | 7123 //unsigned __int16 *v11; // eax@2 |
7122 unsigned int v12; // ebx@3 | 7124 unsigned int v12; // ebx@3 |
7193 if (*v24) | 7195 if (*v24) |
7194 { | 7196 { |
7195 v22 = uShadowColor; | 7197 v22 = uShadowColor; |
7196 if ( *v24 != 1 ) | 7198 if ( *v24 != 1 ) |
7197 v22 = uFaceColor; | 7199 v22 = uFaceColor; |
7198 WritePixel16(clipped_out_x + x, clipped_out_y + y, v22); | 7200 WritePixel16(clipped_out_x + x, clipped_out_y + y, v22); |
7199 } | 7201 } |
7200 } | 7202 ++v24; |
7201 v24 += uCharWidth - v9; | 7203 } |
7204 v24 += uCharWidth - v9; | |
7202 //v23 = uOutXa-- == 1; | 7205 //v23 = uOutXa-- == 1; |
7203 //v11 += this->uTargetSurfacePitch - v9; | 7206 //v11 += this->uTargetSurfacePitch - v9; |
7204 } | 7207 } |
7205 } | 7208 } |
7206 | 7209 |