mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Update guiTextEditCtrl.cpp
This commit is contained in:
parent
03109c9d6d
commit
c4590f6e3d
|
|
@ -1260,7 +1260,7 @@ void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
if ( mProfile->mOpaque )
|
||||
{
|
||||
if (!mTextValid)
|
||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorNA);
|
||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
||||
else if (isFirstResponder())
|
||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorHL);
|
||||
else
|
||||
|
|
@ -1272,7 +1272,7 @@ void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
{
|
||||
renderBorder(ctrlRect, mProfile);
|
||||
if (!mTextValid)
|
||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorNA);
|
||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
||||
}
|
||||
|
||||
drawText( ctrlRect, isFirstResponder() );
|
||||
|
|
|
|||
Loading…
Reference in a new issue