comparison Render.cpp @ 1496:ab6bf38b2940

UIGame.cpp cleaning(continue)
author Ritor1
date Sun, 01 Sep 2013 17:10:29 +0600
parents 934074e7fcc1
children 19890e50e2f6
comparison
equal deleted inserted replaced
1488:f62e6d06acac 1496:ab6bf38b2940
7357 } 7357 }
7358 } 7358 }
7359 } 7359 }
7360 7360
7361 //----- (004A6A68) -------------------------------------------------------- 7361 //----- (004A6A68) --------------------------------------------------------
7362 void Render::_4A6A68(unsigned int a2, unsigned int a3, Texture *a4, __int16 height) 7362 void Render::GetLeather(unsigned int a2, unsigned int a3, Texture *a4, __int16 height)
7363 { 7363 {
7364 Render *v5; // ebx@1
7365 unsigned __int16 v6; // ax@1
7366
7367 v5 = this;
7368
7369 Texture tex; // [sp+Ch] [bp-48h]@1 7364 Texture tex; // [sp+Ch] [bp-48h]@1
7370 //Texture::Texture(&tex); 7365
7371
7372 v6 = a4->uTextureHeight - height;
7373 memcpy(&tex, a4, sizeof(tex)); 7366 memcpy(&tex, a4, sizeof(tex));
7374 tex.uTextureHeight = v6; 7367 tex.uTextureHeight = a4->uTextureHeight - height;
7375 if ( (signed __int16)v6 > 0 ) 7368 if ( (signed __int16)tex.uTextureHeight > 0 )
7376 DrawTextureIndexed(a2, a3, &tex); 7369 DrawTextureIndexed(a2, a3, &tex);
7377 } 7370 }
7378 7371
7379 //----- (004A6AB1) -------------------------------------------------------- 7372 //----- (004A6AB1) --------------------------------------------------------
7380 void Render::DrawTextPalette( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8 ) 7373 void Render::DrawTextPalette( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8 )