mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Update guiTextEditCtrl.cpp
This commit is contained in:
parent
03109c9d6d
commit
c4590f6e3d
1 changed files with 2 additions and 2 deletions
|
|
@ -1260,7 +1260,7 @@ void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect)
|
||||||
if ( mProfile->mOpaque )
|
if ( mProfile->mOpaque )
|
||||||
{
|
{
|
||||||
if (!mTextValid)
|
if (!mTextValid)
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorNA);
|
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
||||||
else if (isFirstResponder())
|
else if (isFirstResponder())
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorHL);
|
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorHL);
|
||||||
else
|
else
|
||||||
|
|
@ -1272,7 +1272,7 @@ void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect)
|
||||||
{
|
{
|
||||||
renderBorder(ctrlRect, mProfile);
|
renderBorder(ctrlRect, mProfile);
|
||||||
if (!mTextValid)
|
if (!mTextValid)
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorNA);
|
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
||||||
}
|
}
|
||||||
|
|
||||||
drawText( ctrlRect, isFirstResponder() );
|
drawText( ctrlRect, isFirstResponder() );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue