|
|
|
@ -99,6 +99,7 @@ namespace NLGUI
|
|
|
|
|
_TextSelection= false;
|
|
|
|
|
_TextSelectionStart= 0;
|
|
|
|
|
_TextSelectionEnd= std::numeric_limits<uint>::max();
|
|
|
|
|
m_DisableShadowInSelection = true;
|
|
|
|
|
|
|
|
|
|
_InvalidTextContext= true;
|
|
|
|
|
_FirstLineX = 0;
|
|
|
|
@ -1188,9 +1189,10 @@ namespace NLGUI
|
|
|
|
|
{
|
|
|
|
|
if (_Lines.empty()) return;
|
|
|
|
|
|
|
|
|
|
bool drawShadow = !(_TextSelection && m_DisableShadowInSelection);
|
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
|
TextContext->setShaded (_Shadow);
|
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline);
|
|
|
|
|
TextContext->setShaded (_Shadow && drawShadow);
|
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline && drawShadow);
|
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
|
@ -1320,9 +1322,10 @@ namespace NLGUI
|
|
|
|
|
{
|
|
|
|
|
nlassert(_Index != 0xFFFFFFFF);
|
|
|
|
|
|
|
|
|
|
bool drawShadow = !(_TextSelection && m_DisableShadowInSelection);
|
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
|
TextContext->setShaded (_Shadow);
|
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline);
|
|
|
|
|
TextContext->setShaded (_Shadow && drawShadow);
|
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline && drawShadow);
|
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
|
|