Mercurial > mm7
diff Render.cpp @ 1268:2929c4406d2c
guiwindow funcs cleanup
author | Gloval |
---|---|
date | Sat, 15 Jun 2013 01:22:17 +0400 |
parents | 0aeac0b9ca30 |
children | 1803172dffd9 |
line wrap: on
line diff
--- a/Render.cpp Thu Jun 13 23:41:42 2013 +0400 +++ b/Render.cpp Sat Jun 15 01:22:17 2013 +0400 @@ -9566,8 +9566,8 @@ } //----- (004A6AB1) -------------------------------------------------------- -void Render::DrawTextPalette(int x, int y, int a4, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8) -{ +void Render::DrawTextPalette( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8 ) + { int v8; // edi@2 unsigned int v9; // esi@2 unsigned __int16 *v10; // eax@2 @@ -9600,14 +9600,14 @@ v8 = a5; v9 = a6; v10 = &pTargetSurface[x + y * uTargetSurfacePitch]; - v11 = (unsigned char *)a4; - v25 = a4; + v11 = (unsigned char *)font_pixels; + v25 = (int)font_pixels; if ( this->bClip ) { v12 = this->uClipX; if ( a2 < (signed int)v12 ) { - v25 = v12 - a2 + a4; + v25 = v12 - a2 + (int)font_pixels; v10 += v12 - a2; v8 = a5 + a2 - v12; }