Fixed pi compilation.
This commit is contained in:
parent
63fe4373a8
commit
95e627c004
@ -99,6 +99,7 @@ CGUIEditBox::CGUIEditBox(const wchar_t* text, bool border,
|
||||
//! destructor
|
||||
CGUIEditBox::~CGUIEditBox()
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (OverrideFont)
|
||||
OverrideFont->drop();
|
||||
|
||||
@ -108,6 +109,7 @@ CGUIEditBox::~CGUIEditBox()
|
||||
CIrrDeviceLinux* dl = dynamic_cast<CIrrDeviceLinux*>(irr_driver->getDevice());
|
||||
dl->setIMEEnable(false);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -235,6 +237,7 @@ void CGUIEditBox::setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT ver
|
||||
//! called if an event happened.
|
||||
bool CGUIEditBox::OnEvent(const SEvent& event)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (isEnabled())
|
||||
{
|
||||
|
||||
@ -280,7 +283,7 @@ bool CGUIEditBox::OnEvent(const SEvent& event)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
return IGUIElement::OnEvent(event);
|
||||
}
|
||||
|
||||
@ -1565,6 +1568,7 @@ void CGUIEditBox::inputChar(wchar_t c)
|
||||
|
||||
void CGUIEditBox::calculateScrollPos()
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (!AutoScroll)
|
||||
return;
|
||||
|
||||
@ -1618,6 +1622,7 @@ void CGUIEditBox::calculateScrollPos()
|
||||
dl->setIMELocation(calculateICPos());
|
||||
}
|
||||
#endif
|
||||
#endif // SERVER_ONLY
|
||||
}
|
||||
|
||||
//! set text markers
|
||||
|
Loading…
x
Reference in New Issue
Block a user