comparison Engine/Graphics/Render.cpp @ 2525:4cc81f981afb

Everything except game can use d3d11
author a.parshin
date Fri, 10 Oct 2014 18:28:04 +0300
parents c7264ab7132f
children b1c516bf1102
comparison
equal deleted inserted replaced
2524:c7264ab7132f 2525:4cc81f981afb
6851 if ( (signed __int16)tex.uTextureHeight > 0 ) 6851 if ( (signed __int16)tex.uTextureHeight > 0 )
6852 DrawTextureIndexed(a2, a3, &tex); 6852 DrawTextureIndexed(a2, a3, &tex);
6853 } 6853 }
6854 6854
6855 //----- (004A6AB1) -------------------------------------------------------- 6855 //----- (004A6AB1) --------------------------------------------------------
6856 void Render::DrawTextPalette( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8 ) 6856 void Render::DrawTextAlpha( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, bool present_time_transparency )
6857 { 6857 {
6858 int v8; // edi@2 6858 int v8; // edi@2
6859 unsigned int v9; // esi@2 6859 unsigned int v9; // esi@2
6860 unsigned char *v11; // edx@2 6860 unsigned char *v11; // edx@2
6861 int v14; // edx@6 6861 int v14; // edx@6
6918 v9 = this->uClipW - v20; 6918 v9 = this->uClipW - v20;
6919 } 6919 }
6920 v11 = (unsigned char *)v25; 6920 v11 = (unsigned char *)v25;
6921 } 6921 }
6922 6922
6923 if ( a8 ) 6923 if ( present_time_transparency )
6924 { 6924 {
6925 v28 = 0x7FF; // 16bit pRenderer->uTargetGMask | pRenderer->uTargetBMask; 6925 v28 = 0x7FF; // transparent color 16bit pRenderer->uTargetGMask | pRenderer->uTargetBMask;
6926 for (uint dy = 0; dy < v9; ++dy) 6926 for (uint dy = 0; dy < v9; ++dy)
6927 { 6927 {
6928 for (int dx = 0; dx < v8; ++dx) 6928 for (int dx = 0; dx < v8; ++dx)
6929 { 6929 {
6930 if ( *v11 ) 6930 if ( *v11 )