diff 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
line wrap: on
line diff
--- a/Engine/Graphics/Render.cpp	Fri Oct 10 17:42:05 2014 +0300
+++ b/Engine/Graphics/Render.cpp	Fri Oct 10 18:28:04 2014 +0300
@@ -6853,7 +6853,7 @@
 }
 
 //----- (004A6AB1) --------------------------------------------------------
-void Render::DrawTextPalette( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8 )
+void Render::DrawTextAlpha( int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, bool present_time_transparency )
     {
   int v8; // edi@2
   unsigned int v9; // esi@2
@@ -6920,9 +6920,9 @@
       v11 = (unsigned char *)v25;
     }
 
-    if ( a8 )
-    {
-      v28 = 0x7FF; // 16bit pRenderer->uTargetGMask | pRenderer->uTargetBMask;
+    if ( present_time_transparency )
+    {
+      v28 = 0x7FF; // transparent color 16bit pRenderer->uTargetGMask | pRenderer->uTargetBMask;
       for (uint dy = 0; dy < v9; ++dy)
       {
         for (int dx = 0; dx < v8; ++dx)