Browse Source

Fixes 2 minor mistake corrections

Areloch 5 years ago
parent
commit
350d3e6702

+ 2 - 1
Engine/source/gui/controls/guiMLTextCtrl.cpp

@@ -528,7 +528,8 @@ void GuiMLTextCtrl::inspectPostApply()
 
    setText(mInitialText, dStrlen(mInitialText));
 
-   mLineSpacingPixels = 0;
+   if (mLineSpacingPixels < 0)
+      mLineSpacingPixels = 0;
 }
 
 

+ 1 - 1
Engine/source/gui/controls/guiMLTextCtrl.h

@@ -253,7 +253,7 @@ class GuiMLTextCtrl : public GuiControl
    Resource<GFont> mFont;
 
    // Console settable parameters
-   U32 mLineSpacingPixels;
+   S32 mLineSpacingPixels;
    bool mAllowColorChars;
    bool mUseURLMouseCursor;
 

+ 1 - 0
Engine/source/renderInstance/renderTranslucentMgr.cpp

@@ -306,6 +306,7 @@ void RenderTranslucentMgr::render( SceneRenderState *state )
                if (passRI->accuTex != lastAccuTex)
                {
                   sgData.accuTex = passRI->accuTex;
+                  lastAccuTex = passRI->accuTex;
                   dirty = true;
                }